token

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

func Retrieve(r *http.Request) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL