Documentation
¶
Overview ¶
Package authgateway encapsulates outbound calls to authenticate a User
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleAccessTokenConverter ¶ added in v0.23.0
type GoogleAccessTokenConverter struct{}
GoogleAccessTokenConverter is used to convert an auth.AccessToken to a User through Google's API
func (GoogleAccessTokenConverter) Convert ¶ added in v0.23.0
func (c GoogleAccessTokenConverter) Convert(ctx context.Context, token auth.AccessToken) (user.User, error)
Convert 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.