Documentation ¶
Index ¶
- func GenerateJWK(letterBytes string, length int) string
- func JWTFromHeader(authHeader string, authScheme string) (string, error)
- type Config
- func (c *Config) Create(audience, issuer string, admin bool, ttl int) (string, error)
- func (c *Config) GetCustomClaims(tokenString string) (MyCustomClaims, error)
- func (c *Config) GetStandardClaims(tokenString string) (jwt.StandardClaims, error)
- func (c *Config) GetToken(tokenString string) (*jwt.Token, error)
- type MyCustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWK ¶
Types ¶
type Config ¶
func (*Config) GetCustomClaims ¶
func (c *Config) GetCustomClaims(tokenString string) (MyCustomClaims, error)
func (*Config) GetStandardClaims ¶
type MyCustomClaims ¶
type MyCustomClaims struct { Admin bool `json:"admin"` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.