Documentation
¶
Overview ¶
Package gateway and packages within provide abstractions for interacting with external systems or resources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth2TokenExchange ¶
type Oauth2TokenExchange struct{}
Oauth2TokenExchange is used to convert an oauth2.Token to a ProviderInfo struct from details returned from a provider API
func (Oauth2TokenExchange) Exchange ¶
func (e Oauth2TokenExchange) Exchange(ctx context.Context, realm string, provider diygoapi.Provider, token *oauth2.Token) (*diygoapi.ProviderInfo, error)
Exchange calls the Google Userinfo API with the access token and converts the Userinfo struct to a User struct
Click to show internal directories.
Click to hide internal directories.