auth

package
v0.0.0-...-161dc30 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorizer

func Authorizer(u, p, path, method, secretKey string) error

func FiberAuthHandler

func FiberAuthHandler(c *fiber.Ctx, secretKey string) error

func HttpAuthHandler

func HttpAuthHandler(accountname string, secretKey string) http.HandlerFunc

func ParseAndVerifyToken

func ParseAndVerifyToken(password string, secretKey string) (userName, accountName, access string, err error)

ParseAndVerifyToken parses the token and verifies it with the secret key and returns the username, accountname, access and error

func ParseToken

func ParseToken(password string) (userName, accountName, access string, err error)

ParseToken parses the token and returns the username, accountname, access and error

func StartServer

func StartServer(envs *env.Envs) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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