antimatter.auth.config.tokens#

Module Contents#

Classes#

OidcTokenFactory

The token factory for converting config file keywords or CLI keywords into

OidcTokenType

The enumerated supported OIDC token types.

OidcToken

The base OIDC token.

StaticToken

A static oauth token format.

GoogleOidcToken

The Google OIDC token format.

class antimatter.auth.config.tokens.OidcTokenFactory#

The token factory for converting config file keywords or CLI keywords into specific token formats.

static from_dict_type(token_type: str) Type[OidcToken]#
static from_cli_type(cli_type: str) Type[OidcToken]#
class antimatter.auth.config.tokens.OidcTokenType#

Bases: str, enum.Enum

The enumerated supported OIDC token types.

Google = 'GoogleToken'#
Static = 'StaticToken'#
class antimatter.auth.config.tokens.OidcToken(*args, **kwargs)#

The base OIDC token.

type: OidcTokenType#
observers: List[Callable] = []#
static from_dict(json: Dict[str, Any]) OidcToken#
abstract to_dict() Dict[str, Any]#
add_observer(observer: Callable)#
notify_observers()#
class antimatter.auth.config.tokens.StaticToken(*args, **kwargs)#

Bases: OidcToken

A static oauth token format.

token: str#
type: OidcTokenType#
to_dict() Dict[str, Any]#
static from_dict(json: Dict[str, Any]) StaticToken#
class antimatter.auth.config.tokens.GoogleOidcToken(*args, **kwargs)#

Bases: OidcToken

The Google OIDC token format.

access_token: str#
id_token: str#
refresh_token: str#
expires_at: int#
type: OidcTokenType#
to_dict() Dict[str, Any]#
static from_dict(json: Dict[str, Any]) GoogleOidcToken#
static init() GoogleOidcToken#