OIDCAuthorizationCode#
- class gafaelfawr.models.oidc.OIDCAuthorizationCode(**data)#
Bases:
BaseModel
An OpenID Connect authorization code.
Very similar to a
Token
in behavior, but with a different serialization and a different type.- Parameters:
data (
Any
)
Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].Methods Summary
from_str
(code)Parse a serialized token into an
OIDCAuthorizationCode
.Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
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.