OIDCToken

pydantic model gafaelfawr.models.oidc.OIDCToken

Holds 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 OIDCValidatedToken represents the other case.

Parameters:

data (Any)

Show JSON schema
{
   "title": "OIDCToken",
   "description": "Holds an encoded JWT.\n\nNotes\n-----\nTokens come in two forms: the encoded form, with is suitable for passing\nin HTTP calls and includes a signature that may not be validated; and the\nvalidated and decoded form, which is a dict of claims.\n\nThis class represents a token that we have in at least encoded form, but\nwhich may not be validated.  The child class OIDCValidatedToken represents\nthe other case.",
   "type": "object",
   "properties": {
      "encoded": {
         "title": "The encoded form of a JWT",
         "type": "string"
      }
   },
   "required": [
      "encoded"
   ]
}

Fields:
field encoded: str [Required]