Versions in this module Expand all Collapse all v0 v0.1.0 Apr 20, 2020 v0.0.7 Apr 17, 2020 v0.0.6 Mar 20, 2020 v0.0.5 Mar 20, 2020 v0.0.4 Mar 20, 2020 v0.0.3 Mar 2, 2020 v0.0.2 Feb 4, 2020 v0.0.1 Jan 29, 2020 Changes in this version + const ClaimName + const ClaimPrefix + const ClientID + const ConfigURL + const EnvIamJwksURL + const EnvIdentityOpenIDClaimName + const EnvIdentityOpenIDClaimPrefix + const EnvIdentityOpenIDClientID + const EnvIdentityOpenIDJWKSURL + const EnvIdentityOpenIDURL + const JwksURL + var DefaultKVS = config.KVS + var ErrTokenExpired = errors.New("token expired") + var Help = config.HelpKVS + func Enabled(kvs config.KVS) bool + func GetDefaultExpiration(dsecs string) (time.Duration, error) + func SetIdentityOpenID(s config.Config, cfg Config) + type Config struct + ClaimName string + ClaimPrefix string + ClientID string + DiscoveryDoc DiscoveryDoc + JWKS struct{ ... } + URL *xnet.URL + func LookupConfig(kvs config.KVS, transport *http.Transport, closeRespFn func(io.ReadCloser)) (c Config, err error) + func (r *Config) PopulatePublicKey() error + func (r *Config) UnmarshalJSON(data []byte) error + type DiscoveryDoc struct + AuthEndpoint string + ClaimsSupported []string + CodeChallengeMethodsSupported []string + IDTokenSigningAlgValuesSupported []string + Issuer string + JwksURI string + ResponseTypesSupported []string + RevocationEndpoint string + ScopesSupported []string + SubjectTypesSupported []string + TokenEndpoint string + TokenEndpointAuthMethods []string + UserInfoEndpoint string + type ID string + type JWKS struct + Alg string + Crv string + D string + E string + K string + Keys []*JWKS + Kid string + Kty string + N string + Use string + X string + Y string + func (key *JWKS) DecodePublicKey() (crypto.PublicKey, error) + type JWT struct + func NewJWT(c Config) *JWT + func (p *JWT) ID() ID + func (p *JWT) Validate(token, dsecs string) (map[string]interface{}, error) + type Validator interface + ID func() ID + Validate func(token string, duration string) (map[string]interface{}, error) + type Validators struct + func NewValidators() *Validators + func (list *Validators) Add(provider Validator) error + func (list *Validators) Get(id ID) (p Validator, err error) + func (list *Validators) List() []ID