antimatter.authn.google_oauth#

Module Contents#

Classes#

GoogleOAuthAuthentication

A base authentication class which uses google oauth device flow for authentication.

class antimatter.authn.google_oauth.GoogleOAuthAuthentication(token: antimatter.auth.config.tokens.GoogleOidcToken = None, reset_credentials: bool = False, enable_retries: bool = True)#

Bases: antimatter.authn.OAuthAuthentication

A base authentication class which uses google oauth device flow for authentication.

This class is used to authenticate with Google OAuth using the device flow. It will prompt the user to go to a verification URL and enter a code to authenticate. This file does not take care of storing the tokens. Use the other derived oauth classes, global and domain to store the tokens.

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

Get the token from the configuration

authenticate(**kwargs)#
needs_refresh()#
get_token()#
get_token_scope()#
get_session()#
get_domain_id()#
get_email()#
has_client_retry_policy() bool#