OIDCAuthorizationStore#
- class gafaelfawr.storage.oidc.OIDCAuthorizationStore(storage)#
Bases:
objectStores and retrieves OpenID Connect authorizations.
- Parameters:
storage (
RedisStorage[OIDCAuthorization]) – The underlying storage forOIDCAuthorization.
Methods Summary
create(authorization)Create a new OpenID Connect authorization.
delete(code)Delete an OpenID Connect authorization.
Delete all stored OpenID Connect authorizations.
get(code)Retrieve an OpenID Connect authorization.
Methods Documentation
- async create(authorization)#
Create a new OpenID Connect authorization.
- Parameters:
authorization (
OIDCAuthorization) – The authorization to create.- Return type:
- async delete(code)#
Delete an OpenID Connect authorization.
- Parameters:
code (
OIDCAuthorizationCode) – The authorization code.- Return type:
- async get(code)#
Retrieve an OpenID Connect authorization.
- Parameters:
code (
OIDCAuthorizationCode) – The authorization code.- Returns:
The corresponding authorization, or None if no such authorization exists.
- Return type:
OIDCAuthorization or None
- Raises:
DeserializeError – Raised if the authorization exists but cannot be deserialized.