Module tame_oauth::gcp

source ·
Expand description

Provides functionality for Google oauth

Re-exports§

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 and IdTokenProvider. Should not be used directly as it is not cached. Use TokenProviderWrapper instead.

Traits§

  • A IdTokenProvider supplies all methods needed for all different flows to get a id token.
  • A TokenProvider has a single method to implement get_token_with_subject. Implementations are free to perform caching or always return a Request in the TokenOrRequest.

Type Aliases§