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) –

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:

OIDCAuthorizationCode

Raises:

InvalidGrantError – Raised if the provided string is not a valid authorization code.