auth

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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