Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func NewSession(w http.ResponseWriter, r *http.Request)
NewSession responds to authentication request with jwt token or appropriate error
func NewSessionMiddleware ¶
NewSessionMiddleware middleware to authenticate a user from the request parameters
Types ¶
type Claims ¶
type TokenFactory ¶
type TokenFactory interface { // NewToken returns a new token string with the given claims NewToken(claims Claims) (string, error) }
TokenFactory provides methods for creating authentication tokens.
func NewTokenFactory ¶
func NewTokenFactory(config common.Configuration) (TokenFactory, error)
NewTokenFactory constructs a token factory using the given configuration.
Click to show internal directories.
Click to hide internal directories.