Versions in this module Expand all Collapse all v1 v1.3.5 Dec 12, 2019 Changes in this version + var Issuers = map[string]bool + func GetDefaultEmail(ctx context.Context, addr string, hc *http.Client) (string, error) + func IAMClaimsDecoderFunc(_ context.Context, b []byte) (auth.ClaimSetter, error) + func IAMVerifyFunc(vf func(ctx context.Context, cs IAMClaimSet) bool) auth.VerifyFunc + func IdentityClaimsDecoderFunc(_ context.Context, b []byte) (auth.ClaimSetter, error) + func IdentityVerifyFunc(vf func(ctx context.Context, cs IdentityClaimSet) bool) auth.VerifyFunc + func NewDefaultIAMVerifier(ctx context.Context, cfg IAMConfig, ...) (*auth.Verifier, error) + func NewDefaultIdentityVerifier(ctx context.Context, cfg IdentityConfig) (*auth.Verifier, error) + func NewIAMPublicKeySource(ctx context.Context, cfg IAMConfig, ...) (auth.PublicKeySource, error) + func NewIAMTokenSource(ctx context.Context, cfg IAMConfig) (oauth2.TokenSource, error) + func NewIdentityPublicKeySource(ctx context.Context, cfg IdentityConfig) (auth.PublicKeySource, error) + func NewIdentityTokenSource(cfg IdentityConfig) (oauth2.TokenSource, error) + func ValidIAMClaims(cs IAMClaimSet, audience string) bool + func ValidIdentityClaims(cs IdentityClaimSet, audience string) bool + func VerifyIAMEmails(ctx context.Context, emails []string, audience string) auth.VerifyFunc + func VerifyIdentityEmails(ctx context.Context, emails []string, audience string) auth.VerifyFunc + type Authenticator struct + func NewAuthenticator(ctx context.Context, cfg AuthenticatorConfig) (Authenticator, error) + func (c Authenticator) LogOut(w http.ResponseWriter) + func (c Authenticator) Middleware(h http.Handler) http.Handler + type AuthenticatorConfig struct + AuthConfig *oauth2.Config + CookieName string + CustomExceptionsFunc func(context.Context, *http.Request) bool + HeaderExceptions []string + IDConfig IdentityConfig + IDVerifyFunc func(context.Context, IdentityClaimSet) bool + KMSKeyName string + Logger log.Logger + UnsafeState bool + type ContextTokenSource interface + ContextToken func(context.Context) (*oauth2.Token, error) + func NewContextIAMTokenSource(ctx context.Context, cfg IAMConfig) (ContextTokenSource, error) + type IAMClaimSet struct + Email string + func (s IAMClaimSet) BaseClaims() *jws.ClaimSet + type IAMConfig struct + Audience string + IAMAddress string + JSON []byte + Project string + ServiceAccountEmail string + type IdentityClaimSet struct + Email string + EmailVerified bool + Google map[string]interface{} + func GetUserClaims(ctx context.Context) (IdentityClaimSet, error) + func (s IdentityClaimSet) BaseClaims() *jws.ClaimSet + type IdentityConfig struct + Audience string + CertURL string + Client *http.Client + MetadataAddress string v1.3.4-eg Dec 12, 2019