grpc

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthorizationHeader is the lowercase header key for authorization
	AuthorizationHeader = "authorization"
	// BearerPrefix is the prefix for Bearer tokens
	BearerPrefix = "Bearer "
)

Variables

View Source
var (
	ErrMissingMetadata   = errors.New("missing metadata")
	ErrMissingAuthHeader = errors.New("missing authorization header")
	ErrInvalidAuthFormat = errors.New("invalid authorization header format")
)

Functions

func ExtractBearerToken

func ExtractBearerToken(ctx context.Context) (string, error)

ExtractBearerToken extracts a Bearer token from gRPC incoming context metadata. Used by servers requiring the JWT authentication this package provides.

Types

This section is empty.

Jump to

Keyboard shortcuts

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