antimatter.authn.oauth_domain#

Module Contents#

Classes#

OAuthDomainAuthentication

A domain authentication class which uses an oauth token for authentication.

class antimatter.authn.oauth_domain.OAuthDomainAuthentication(domain_id: str, oauth_authentication: antimatter.authn.OAuthAuthentication, identity_provider_name: str = 'google')#

Bases: antimatter.authn.Authentication

A domain authentication class which uses an oauth token for authentication. This class uses the oauth id token obtained from its parent to transmute them into a domain identity token. It uses the identity provider name “google” by default to authenticate the domain.

authenticate(token_lifetime: int | None = None)#
get_token()#
needs_refresh()#
get_token_scope()#
get_session()#
get_domain_id()#
get_email()#
has_client_retry_policy() bool#