Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTClaims ¶
type JWTClaims struct {
Name string `json:"name"`
jwt.StandardClaims
}
type JWTProvider ¶
type JWTProvider interface {
Verify(token string) (*JWTClaims, error)
IssueToken(name string, exp int64) (string, error)
}
func NewJWTProvider ¶
func NewJWTProvider(secretKey string) JWTProvider
type OIDCProvider ¶
func NewOIDCProvider ¶
Click to show internal directories.
Click to hide internal directories.