Module tame_oauth::gcp
source · Expand description
Provides functionality for Google oauth
Re-exports§
pub use end_user::EndUserCredentials;
pub use end_user::EndUserCredentialsInfo;
pub use metadata_server::MetadataServerProvider;
pub use service_account::ServiceAccountInfo;
pub use service_account::ServiceAccountProvider;
Modules§
Structs§
- Represents a id token as returned by
OAuth2
servers. - Represents a access token as returned by
OAuth2
servers.
Enums§
- Either a valid token, or an HTTP request. With some token sources, two different HTTP requests needs to be performed, one to get an access token and one to get the actual id token.
- Either a valid token, or an HTTP request that can be used to acquire one
- Wrapper around the different providers that are supported. Implements both
TokenProvider
andIdTokenProvider
. Should not be used directly as it is not cached. UseTokenProviderWrapper
instead.
Traits§
- A
IdTokenProvider
supplies all methods needed for all different flows to get a id token. - A
TokenProvider
has a single method to implementget_token_with_subject
. Implementations are free to perform caching or always return aRequest
in theTokenOrRequest
.