mainframe.json_web_token ======================== .. py:module:: mainframe.json_web_token Classes ------- .. autoapisummary:: mainframe.json_web_token.AuthenticationData mainframe.json_web_token.JsonWebToken mainframe.json_web_token.CFJsonWebToken Module Contents --------------- .. py:class:: AuthenticationData .. py:attribute:: issuer :type: str .. py:attribute:: subject :type: str .. py:attribute:: audience :type: str .. py:attribute:: issued_at :type: datetime.datetime .. py:attribute:: expires_at :type: datetime.datetime .. py:attribute:: grant_type :type: str | None .. py:method:: from_dict(data: dict[Any, Any]) -> Self :classmethod: .. py:class:: JsonWebToken Perform JSON Web Token (JWT) validation using PyJWT. .. py:attribute:: jwt_access_token :type: str .. py:attribute:: auth0_issuer_url :type: str :value: 'https:///' .. py:attribute:: auth0_audience :type: str :value: '' .. py:attribute:: algorithm :type: str :value: 'RS256' .. py:attribute:: jwks_uri :type: str :value: 'https:///.well-known/jwks.json' .. py:method:: validate() -> AuthenticationData .. py:class:: CFJsonWebToken Validate Cloudflare Access JSON Web Token using PyJWT. .. py:attribute:: jwt_access_token :type: str .. py:attribute:: audience .. py:attribute:: jwks_uri :value: 'Uninferable/cdn-cgi/access/certs' .. py:attribute:: algorithm :type: str :value: 'RS256' .. py:method:: validate() -> AuthenticationData