Documentation ¶
Index ¶
Constants ¶
View Source
const (
GoogleOAuth2Provider = "Google"
)
Variables ¶
This section is empty.
Functions ¶
func RevokeGoogleOAuth2Token ¶
Types ¶
type Helper ¶
func NewGoogleOAuth2Helper ¶
func NewGoogleOAuth2Helper(redirectURL string, sm secrets.SecretManager) *Helper
Build a oauth2.Config object with Google as the provider.
type IDTokenClaims ¶
type IDTokenClaims map[string]interface{}
ID tokens (from OpenID connect) are presented in JWT format, with the relevant fields in the Claims section.
func (IDTokenClaims) Email ¶
func (c IDTokenClaims) Email() (string, error)
type OAuth2Config ¶
Click to show internal directories.
Click to hide internal directories.