Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndAuthorizationMiddlewareAdapter ¶
func EndAuthorizationMiddlewareAdapter() controllers.Adapter
EndAuthorizationMiddlewareAdapter This cleans the context of any previous users token left in memory and rereading all of the default options for the next request
func TokenAuthorizationMiddlewareAdapter ¶
func TokenAuthorizationMiddlewareAdapter(roles []string, claims []string) controllers.Adapter
TokenAuthorizationMiddlewareAdapter validates a Authorization Bearer during a rest api call It can take an array of roles and claims to further validate the token in a more granular view, it also can take an OR option in both if the role or claim are coma separated. For example a claim like "_read,_write" will be valid if the user either has a _read claim or a _write claim making them both valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.