httpauthz

package
v0.0.0-...-3a1fdf7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package httpauthz contains helper functions for parsing the 'Authorization' header in HTTP requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBearerToken

func ParseBearerToken(authorizationHeaderValue string) string

ParseBearerToken parses a bearer token's value from a HTTP Authorization header. If the prefix of the authorization header value is 'Bearer ' (case ignored) the rest of the value that follows the prefix is returned, otherwise an empty string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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