antimatter.authn.base#

Module Contents#

Classes#

Authentication

This is an abstract class for authentication. These methods must be implemented by the child classes.

OAuthAuthentication

This is an abstract class which should be used by OAuth clients for authentication.

class antimatter.authn.base.Authentication#

Bases: abc.ABC

This is an abstract class for authentication. These methods must be implemented by the child classes. Authentication should return a domain identity token which can then be used to perform actions on behalf of the domain.

abstract authenticate(token_lifetime: int | None = None)#
abstract get_token()#
abstract needs_refresh()#
abstract get_token_scope()#
abstract get_session()#
abstract get_domain_id()#
abstract get_email()#
abstract has_client_retry_policy() bool#
class antimatter.authn.base.OAuthAuthentication#

Bases: Authentication, abc.ABC

This is an abstract class which should be used by OAuth clients for authentication.

abstract get_config_token() antimatter.auth.config.tokens.OidcToken#

Get the token from the configuration