auth

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 4 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/server/router/middleware/auth"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveAccessToken

func RetrieveAccessToken(r *http.Request) (accessToken string, err error)

RetrieveAccessToken gets the passed in access token from the header in the request.

func RetrieveRefreshToken

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

RetrieveRefreshToken gets the refresh token sent along with the request as a cookie.

func RetrieveTokenHeader added in v0.27.1

func RetrieveTokenHeader(r *http.Request) string

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.

Jump to

Keyboard shortcuts

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