Documentation ¶
Overview ¶
Package token provides the ability for inserting Vela token resources into or extracting Vela token resources from the middleware chain for the API.
Usage:
import "github.com/go-vela/worker/router/middleware/token"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Retrieve ¶
nolint: godot // ignore comment ending in period
Retrieve gets the token from the provided request http.Request to be parsed and validated. This is called on every request to enable capturing the user making the request and validating they have the proper access. The following methods of providing authentication to Vela are supported:
* Bearer token in `Authorization` header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.