GoogleCredentialsLocalProvider

GoogleCredentialsLocalProvider(
    client_secret_file: str,
    scopes: list[str],
    token_file: str | None = None,
    port: int = 8080
)

A protocol for Google credentials provider.
A Google credentials provider that gets the credentials locally.

Parameters:
NameDescription
client_secret_fileType: str
scopesType: list[str]
token_fileType: str | None

Default: None
portType: int

Default: 8080

Instance Attributes

host


Localhost is the default host.

port


The port from which to get the credentials.

Instance Methods

get_credentials

get_credentials(self) -> Credentials

Get the Google credentials.