Documentation
¶
Overview ¶
tokenauth_gateway plugin is a gateway for token authentication. It provides:
- Middleware for token authentication, which checks for a "Authorization: Token <value>" http header and validates against the tokenauth plugin;
- HTTP handlers for creating and revoking tokens;
- Methods which can return a token name from a token value.
Index ¶
Constants ¶
View Source
const ( DefaultLabelSuffix = "-gw" DefaultPathSuffix = "/v1" DefaultLabel = tokenauth.DefaultLabel + DefaultLabelSuffix MiddlewareName = tokenauth.DefaultLabel MiddlewareAdminName = tokenauth.DefaultLabel + "-admin" )
Variables ¶
This section is empty.
Functions ¶
func NewWithConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.