Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidIssuer = errors.New("Token is not valid, ISS from token and certificate don't match") ErrInvalidAudience = errors.New("Token is not valid, Audience from token and certificate don't match") ErrInvalidEmail = errors.New("Token is not valid, Email from token and certificate don't match") ErrTokenExpired = errors.New("Token is not valid, Token is expired.") ErrInvalidKid = errors.New("Token is not valid, kid from token and certificate don't match") )
Functions ¶
func SetHttpClient ¶
Types ¶
type TokenInfo ¶
type TokenInfo struct { Sub string `json:"sub"` Email string `json:"email"` AtHash string `json:"at_hash"` Aud string `json:"aud"` EmailVerified bool `json:"email_verified"` Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Picture string `json:"picture"` Local string `json:"locale"` Iss string `json:"iss"` Azp string `json:"azp"` Iat int64 `json:"iat"` Exp int64 `json:"exp"` }
TokenInfo is
type Validator ¶
func AudienceValidator ¶
func EmailValidator ¶
func ExpireValidator ¶
func ExpireValidator() Validator
func IssuerValidator ¶
func IssuerValidator() Validator
Click to show internal directories.
Click to hide internal directories.