Token¶
-
class
gafaelfawr.tokens.Token(encoded: str)¶ Bases:
objectHolds an encoded JWT.
Notes
Tokens come in two forms: the encoded form, with is suitable for passing in HTTP calls and includes a signature that may not be validated; and the validated and decoded form, which is a dict of claims.
This class represents a token that we have in at least encoded form, but which may not be validated. The child class ValidatedToken represents the other case.