auth

package
v0.0.0-...-a14c69b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const JwtSecret = "167f0db2-f83e-4baa-9736-d56064a5b415"
View Source
const TokenHeader = "Auth-Token"

token header

Variables

View Source
var TokenExpiryTime = 1200

our expire time

Functions

This section is empty.

Types

type JwtUserClaim

type JwtUserClaim struct {
	UserName     string `json:"username"`
	UserAdmin    bool   `json:"useradmin"`
	ExternalAuth bool   `json:"externalauth"`
	jwt.StandardClaims
}

jwt token claims which contains info regarding user

Jump to

Keyboard shortcuts

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