Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTimeFunc ¶
Types ¶
type Claims ¶
type Claims struct { ClientID string `json:"client_id"` Email string `json:"email"` Scope interface{} `json:"scope"` StandardClaims }
type KeyCache ¶
type KeyCache struct {
// contains filtered or unexported fields
}
func (*KeyCache) GetOrFetchKey ¶
type ScopeClaims ¶
type ScopeClaims struct { Claims // contains filtered or unexported fields }
func NewRegexpScopeClaims ¶
func NewRegexpScopeClaims(scope ...*regexp.Regexp) *ScopeClaims
func NewScopeClaims ¶
func NewScopeClaims(scope ...string) *ScopeClaims
func (*ScopeClaims) Valid ¶
func (c *ScopeClaims) Valid() error
type StandardClaims ¶
type StandardClaims struct { Audience interface{} `json:"aud,omitempty"` ExpiresAt int64 `json:"exp,omitempty"` Id string `json:"jti,omitempty"` IssuedAt int64 `json:"iat,omitempty"` Issuer string `json:"iss,omitempty"` NotBefore int64 `json:"nbf,omitempty"` Subject string `json:"sub,omitempty"` }
https://tools.ietf.org/html/rfc7519#section-4.1
func (StandardClaims) GetAudience ¶
func (c StandardClaims) GetAudience() []string
func (StandardClaims) Valid ¶
func (c StandardClaims) Valid() error
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ParseWithClaims ¶
Click to show internal directories.
Click to hide internal directories.