authreq

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthHeader = "Authorization"
View Source
var SignatureLifetime = 30 * time.Minute

Functions

func Authorization

func Authorization(hdlr http.Handler) http.Handler

func FromContext

func FromContext(ctx context.Context) *jwt.RegisteredClaims

func Sign

func Sign(req *http.Request, key ed25519.PrivateKey) (*http.Request, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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