Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + const ES256 + const ES384 + const ES512 + const PS256 + const PS384 + const PS512 + const RS256 + const RS384 + const RS512 + const ScopeOfflineAccess + const ScopeOpenID + func ClientContext(ctx context.Context, client *http.Client) context.Context + func Nonce(nonce string) oauth2.AuthCodeOption + type Config struct + ClientID string + Now func() time.Time + SkipClientIDCheck bool + SkipExpiryCheck bool + SupportedSigningAlgs []string + type IDToken struct + AccessTokenHash string + Audience []string + Expiry time.Time + IssuedAt time.Time + Issuer string + Nonce string + Subject string + func (i *IDToken) Claims(v interface{}) error + func (i *IDToken) VerifyAccessToken(accessToken string) error + type IDTokenVerifier struct + func NewVerifier(issuerURL string, keySet KeySet, config *Config) *IDTokenVerifier + func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDToken, error) + type KeySet interface + VerifySignature func(ctx context.Context, jwt string) (payload []byte, err error) + func NewRemoteKeySet(ctx context.Context, jwksURL string) KeySet + type Provider struct + func NewProvider(ctx context.Context, issuer string) (*Provider, error) + func (p *Provider) Claims(v interface{}) error + func (p *Provider) Endpoint() oauth2.Endpoint + func (p *Provider) UserInfo(ctx context.Context, tokenSource oauth2.TokenSource) (*UserInfo, error) + func (p *Provider) Verifier(config *Config) *IDTokenVerifier + type UserInfo struct + Email string + EmailVerified bool + Profile string + Subject string + func (u *UserInfo) Claims(v interface{}) error