Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateRequest ¶
Authenticate from the http Request handle directly Note: this step needs to happen before upgrading from http to websocket or any other protocol, allowing parsing of the provided headers.
Auth Token typically is sent as part of the Authorization Header, but for websocket kind of connection it is typically not a supported mechanism, Thus this function also allows working with a token passed as part of the cookie. by default it will look for cookie name "AUTH_TOKEN", Unless it is overidden as part of the argument cookie, if empty it falls back to default cookie name priority order 1. Authorization Header 2. if no token found above, get from cookie
func AuthenticateToken ¶
Authenticate the bearer token provided in the individual API request sent over to the controller
func Initialize ¶
Initialize authentication module, providing the constructs to validate token available in the incoming HTTP requests
Types ¶
This section is empty.