Trees | Indices | Help |
---|
|
|
|||
AppIdentityError | |||
Verifier Verifies the signature on a message. |
|||
Signer Signs messages with a private key. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
logger = logging.getLogger(__name__)
|
|||
CLOCK_SKEW_SECS = 300
|
|||
AUTH_TOKEN_LIFETIME_SECS = 300
|
|||
MAX_TOKEN_LIFETIME_SECS = 86400
|
|||
__package__ =
|
|
Make a signed JWT. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: signer: crypt.Signer, Cryptographic signer. payload: dict, Dictionary of data to convert to JSON and then sign. Returns: string, The JWT for the payload. |
Verify a JWT against public certs. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: jwt: string, A JWT. certs: dict, Dictionary where values of public keys in PEM format. audience: string, The audience, 'aud', that this JWT should contain. If None then the JWT's 'aud' parameter is not verified. Returns: dict, The deserialized JSON payload in the JWT. Raises: AppIdentityError if any checks are failed. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Aug 3 07:38:25 2012 | http://epydoc.sourceforge.net |