Documentation ¶
Overview ¶
Package auth provides authentication and authorization support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = errors.New("attempted action is not allowed")
ErrForbidden is returned when a auth issue is identified.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth is used to authenticate clients. It can generate a token for a set of user claims and recreate the claims by parsing the token.
func (*Auth) GenerateToken ¶
GenerateToken generates a signed JWT token string representing the user Claims.
Click to show internal directories.
Click to hide internal directories.