auth

package
v0.0.0-...-9531d78 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamSession  string = "session"
	ParamTimeout  string = "timeout"
	ParamLocation string = "country"
	ParamFallback string = "fallback"
)

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(req *http.Request) (string, string, string)

GetCredentials returns the username, password and params from the Proxy-Authorization header

func GetParams

func GetParams(params string) map[string]string

GetParams returns a map of the parameters from the username

func GetRedisClient

func GetRedisClient() *redis.Client

func SplitParams

func SplitParams(username string) (string, string)

SplitParams splits the username and params

func Verify

func Verify(username, password string) bool

VerifyCredentials verifies the credentials of the user

func VerifySession

func VerifySession(result map[string]string) bool

VerifySession verifies the session

Types

This section is empty.

Jump to

Keyboard shortcuts

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