auth

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth added in v0.0.3

func BasicAuth(cred Credentials, next func(w http.ResponseWriter, r *http.Request)) func(http.ResponseWriter, *http.Request)

func ValidateJwtInRequest

func ValidateJwtInRequest(r *http.Request, jwtKey []byte) (*jwt.Claims, error)

Types

type Credentials added in v0.0.3

type Credentials struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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