- class Pyjo.GCP.Credentials.ExternalAccountAuthorizedUser.Pyjo_GCP_Credentials_ExternalAccountAuthorizedUser(*, refresh_token: str | None = None, token_url: str | None = None, client_id: str | None = None, client_secret: str | None = None, audience: str | None = None, token: str | None = None, expiration: datetime | None = None, quota_project: str | None = None, universe_domain: str | None = None, **kwargs: Any)[source]¶
Pyjo.GCP.Credentials.ExternalAccountAuthorizedUserinherits all attributes and methods fromPyjo.GCP.Credentials.Providerand implements the following new ones.- __init__(*, refresh_token: str | None = None, token_url: str | None = None, client_id: str | None = None, client_secret: str | None = None, audience: str | None = None, token: str | None = None, expiration: datetime | None = None, quota_project: str | None = None, universe_domain: str | None = None, **kwargs: Any) None[source]¶
provider = Pyjo.GCP.Credentials.ExternalAccountAuthorizedUser.new( refresh_token=refresh_token, token_url='https://sts.googleapis.com/v1/oauthtoken', client_id=client_id, client_secret=client_secret)
Construct a new
Pyjo.GCP.Credentials.ExternalAccountAuthorizedUserobject, with the options ofPyjo.GCP.Credentials.Provider, or aPyjo.Exceptionwithout the fields of a refresh or a token.
- audience¶
audience = provider.audience
The resource name of the provider of the workforce pool, or
None.
- client_id¶
client_id = provider.client_id
The ID of the OAuth client of the workforce pool, or
None.
- client_secret¶
secret = provider.client_secret
The secret of the OAuth client, or
None.
- async fetch() Pyjo_GCP_Credentials[source]¶
credentials = await provider.fetch()
The access token of the refresh token, or a
Pyjo.Exceptionwithout one.
- classmethod from_info(info: Mapping[str, Any], **kwargs: Any) Self[source]¶
provider = ExternalAccountAuthorizedUser.from_info(info) provider = ExternalAccountAuthorizedUser.from_info(info, ua=ua)
A new provider of the JSON object of a file of the type
external_account_authorized_user, with the fields of the file and the arguments over them.
- quota_project¶
project = provider.quota_project
The quota project of the credentials, or
None.
- refresh_token¶
refresh_token = provider.refresh_token
The refresh token of the user, or
None.
- token_url¶
url = provider.token_url
The token endpoint of the refresh, as
https://sts.googleapis.com/v1/oauthtoken, orNone.
- universe_domain¶
domain = provider.universe_domain
The universe domain,
googleapis.comby default.