Documentation ¶
Overview ¶
Package security is a toolkit for security check and authorization
Package security is a toolkit for security check and authorization ¶
Package security is a toolkit for authorization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrAuthType ¶
func RFC7617UserPass ¶
RFC7617UserPass base64 encodes a authUser-id and password per: https://tools.ietf.org/html/rfc7617#section-2
Types ¶
type Scheme ¶
func ParseScheme ¶
ParseScheme parses a token string into a Scheme.
type Token ¶
type Token interface { json.Marshaler // TokenType returns the token type TokenType() TokenType // Domain returns the domain Domain() string // Subject returns the subject Subject() string // ExpiresAt returns the expiration time ExpiresAt() int64 // AccessToken returns the access token AccessToken() string // Others returns the others Others() map[string]any }
Token is an interface for getting token information
type TokenSerializer ¶
Click to show internal directories.
Click to hide internal directories.