aap_client.tokens¶
Classes and functions that encode, decode and verify JWT tokens
Encoded means encoded using base64, decoded tokens are json files
Members¶
| members: |
|---|
-
class
aap_client.tokens.TokenDecoder(filename, required_claims=None)[source]¶ Bases:
objectDecodes and verifies tokens using an x509 certificate and checking always the same claims.
Parameters: - filename – relative path to the file that contains the x509 certificate.
- required_claims – list of string with the claims that need to be present in the tokens.