Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantTimeCompare ¶
ConstantTimeCompare performs a constant-time comparison of two strings.
func ParseBasicAuth ¶
ParseBasicAuth extracts username and password from Basic Auth header.
func ParseBearerToken ¶
ParseBearerToken extracts token from Bearer Auth header.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles authentication.
func (*Manager) Authenticate ¶
Authenticate verifies username and password and returns a token.
func (*Manager) CreateUser ¶
CreateUser creates a new user with the given credentials.
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
TokenStore manages authentication tokens.
Click to show internal directories.
Click to hide internal directories.