Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Issuer specifies issuer claim Issuer string `json:"issuer" yaml:"issuer"` // KeyID specifies ID of the current key KeyID string `json:"kid" yaml:"kid"` // Keys specifies list of issuer's keys Keys []*Key `json:"keys" yaml:"keys"` }
Config provides OAuth2 configuration
func LoadConfig ¶
LoadConfig returns configuration loaded from a file
type Key ¶
type Key struct { // ID of the key ID string `json:"id" yaml:"id"` Seed string `json:"seed" yaml:"seed"` }
Key for JWT signature
type Parser ¶
type Parser interface { // ParseToken returns jwt.StandardClaims ParseToken(authorization, audience string) (*jwt.StandardClaims, error) }
Parser specifies JWT parser interface
Click to show internal directories.
Click to hide internal directories.