Google App Engine standard environment support.
This module provides authentication and signing for applications running on App Engine in the standard environment using the App Identity API.
Bases: Signer
Signs messages using the App Engine App Identity service.
This can be used in place of google.auth.crypt.Signer
when running in the App Engine standard environment.
The key ID used to identify this private key.
Warning
This is always None
. The key ID used by App Engine can not be reliably determined ahead of time.
Gets the project ID for the current App Engine application.
The project ID
google.auth.exceptions.OSError – If the App Engine APIs are unavailable.
Bases: Scoped
, Signing
, CredentialsWithQuotaProject
App Engine standard environment credentials.
These credentials use the App Engine App Identity API to obtain access tokens.
scopes (Sequence
str
) – Scopes to request from the App Identity API.
default_scopes (Sequence
str
) – Default scopes passed by a Google client library. Use ‘scopes’ for user-defined scopes.
service_account_id (str) – The service account ID passed into google.appengine.api.app_identity.get_access_token()
. If not specified, the default application service account ID will be used.
quota_project_id (Optional
str
) – The project ID used for quota and billing.
google.auth.exceptions.OSError – If the App Engine APIs are unavailable.
Refreshes the access token.
request (google.auth.transport.Request) – The object used to make HTTP requests.
google.auth.exceptions.RefreshError – If the credentials could not be refreshed.
The service account email.
Checks if the credentials requires scopes.
True if there are no scopes set otherwise False.
Create a copy of these credentials with the specified scopes.
scopes (Sequence
str
) – The list of scopes to attach to the current credentials.
NotImplementedError – If the credentials’ scopes can not be changed. This can be avoided by checking requires_scopes
before calling this method.
Returns a copy of these credentials with a modified quota project.
quota_project_id (str) – The project to use for quota and billing purposes
A new credentials instance.
Signs the given message.
The signer used to sign bytes.
Apply the token to the authentication header.
Performs credential-specific before request logic.
Refreshes the credentials if necessary, then calls apply()
to apply the token to the authentication header.
request (google.auth.transport.Request) – The object used to make HTTP requests.
method (str) – The request’s HTTP method or the RPC method being invoked.
url (str) – The request’s URI or the RPC service’s URI.
headers (Mapping) – The request’s headers.
Checks if the credentials are expired.
Note that credentials can be invalid but not expired because Credentials with expiry
set to None is considered to never expire.
Deprecated since version v2.24.0: Prefer checking token_state
instead.
The credential information JSON.
The credential information will be added to auth related error messages by client library.
Checks if the credentials have the given scopes.
Project to use for quota and billing purposes.
See :obj:`TokenState
The universe domain value.
Checks the validity of the credentials.
This is True if the credentials have a token
and the token is not expired
.
Deprecated since version v2.24.0: Prefer checking token_state
instead.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4