OIDCAuthorizationCode#
- class gafaelfawr.models.oidc.OIDCAuthorizationCode(**data)#
Bases:
BaseModelAn OpenID Connect authorization code.
Very similar to a
Tokenin behavior, but with a different serialization and a different type.- Parameters:
data (
Any) –
Methods Summary
from_str(code)Parse a serialized token into an
OIDCAuthorizationCode.Methods Documentation
- classmethod from_str(code)#
Parse a serialized token into an
OIDCAuthorizationCode.- Parameters:
code (
str) – The serialized code.- Returns:
The decoded
OIDCAuthorizationCode.- Return type:
- Raises:
InvalidGrantError – Raised if the provided string is not a valid authorization code.