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
OAuth2servers. - Represents a access token as returned by
OAuth2servers.
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
TokenProviderandIdTokenProvider. Should not be used directly as it is not cached. UseTokenProviderWrapperinstead.
Traits
- A
IdTokenProvidersupplies all methods needed for all different flows to get a id token. - A
TokenProviderhas a single method to implementget_token_with_subject. Implementations are free to perform caching or always return aRequestin theTokenOrRequest.