mainframe.json_web_token

Classes

AuthenticationData

JsonWebToken

Perform JSON Web Token (JWT) validation using PyJWT

Module Contents

class mainframe.json_web_token.AuthenticationData[source]
issuer: str[source]
subject: str[source]
audience: str[source]
issued_at: datetime.datetime[source]
expires_at: datetime.datetime[source]
grant_type: str | None[source]
classmethod from_dict(data: dict[Any, Any])[source]
class mainframe.json_web_token.JsonWebToken[source]

Perform JSON Web Token (JWT) validation using PyJWT

jwt_access_token: str[source]
auth0_issuer_url: str[source]
auth0_audience: str[source]
algorithm: str = 'RS256'[source]
jwks_uri: str[source]
validate() AuthenticationData[source]