Documentation ¶
Overview ¶
This package contains a custom goa middleware that aims to extract, when possible, the token from the http requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenContext ¶
func TokenContext(app application.Application, tokenManager manager.TokenManager, scheme *goa.JWTSecurity) goa.Middleware
TokenContext is a new goa middleware that aims to extract the token from the Authorization header when possible. If the Authorization header is missing in the request, no error is returned. However, if the Authorization header contains a token, it will be stored it in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.