Documentation ¶
Index ¶
- Constants
- type JWTSettings
- type Service
- func (s Service) IntrospectToken(ctx context.Context, token string) (TokenInfo, error)
- func (s Service) Login(ctx context.Context, username, password string) (Token, error)
- func (s Service) Logout(ctx context.Context, token string) error
- func (s Service) ValidateAPIKey(ctx context.Context, key string) error
- type Token
- type TokenInfo
Constants ¶
View Source
const (
HMAC256Algorithm signingAlgorithm = "HS256"
)
The valid JWT hashing function algorithms.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTSettings ¶
JWTSettings are the available configuration values for generating JWTs.
type Service ¶
type Service struct {
Repo store.Repository
}
func (Service) IntrospectToken ¶
Click to show internal directories.
Click to hide internal directories.