utils

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractToken

func ExtractToken(r *http.Request) string

func ExtractTokenMetadata

func ExtractTokenMetadata(r *http.Request) (access.Description, error)

Extract token info

func GenUUID

func GenUUID() string

GenUUID return a new UUID.

func Hash

func Hash(secret string) (string, error)

func PasswordMatch

func PasswordMatch(hashedPassword, password string) bool

func TokenValid

func TokenValid(r *http.Request) error

func VerifyToken

func VerifyToken(r *http.Request) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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