httpauth

package
v0.0.0-...-4dcfcdd Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package httpauth contains a common function for extracting credentials from an HTTP request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Token

func Token(req *http.Request) string

Token returns the bearer authorization header or the access_token HTTP parameter associated with the request. If an authorization query parameter is used, the request will be updated to delete that parameter. This function will return an empty string if no authorization token is associated with the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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