auth

package
v0.0.0-...-1d4e844 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CookieAuthTokenKey = "authtoken"

Variables

This section is empty.

Functions

func CreateNewToken

func CreateNewToken(inputID, inputPassword string) (string, error)

func Initialize

func Initialize(cfg *config.ServerConfig)

func MaybeGenerateRandomPassword

func MaybeGenerateRandomPassword(envKey string) string

Returns password from environments if environment variable named by envKey is present. Otherwise, returns random-generated password.

func NewJWTMiddleware

func NewJWTMiddleware() echo.MiddlewareFunc

Create new JWT Middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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