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/server/router/middleware/auth"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveAccessToken ¶
RetrieveAccessToken gets the passed in access token from the header in the request.
func RetrieveRefreshToken ¶
RetrieveRefreshToken gets the refresh token sent along with the request as a cookie.
func RetrieveTokenHeader ¶ added in v0.27.1
RetrieveTokenHeader gets the passed in install token from the 'Token' header in the request.
this is only used for builds that have app installation tokens that are used for status updates. it is not required unless the repository has installed the Vela app.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.