auth

package
v0.0.0-...-3db17e8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthHeaderName = "JWTAuthToken"

Variables

This section is empty.

Functions

func CheckAuthJWTToken

func CheckAuthJWTToken(jwtToken, username string) error

func CheckUserIsAuthorized

func CheckUserIsAuthorized(ctx context.Context, username string) error

func GenerateAuthJWT

func GenerateAuthJWT(username string, duration time.Duration) (string, error)

func WithJWTAuth

func WithJWTAuth(ctx context.Context, token string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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