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 ¶ added in v0.0.38
func RFC7617UserPass ¶ added in v0.0.38
RFC7617UserPass base64 encodes a authUser-id and password per: https://tools.ietf.org/html/rfc7617#section-2
Types ¶
type Scheme ¶
func ParseScheme ¶ added in v0.0.38
ParseScheme parses a token string into a Scheme.
type Token ¶ added in v0.0.38
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 ¶ added in v0.0.38
Click to show internal directories.
Click to hide internal directories.