pgjwt

package module
v0.0.0-...-633d5fc Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pgjwt

documentation welcomed

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(r *http.Request, keys map[string]string, jwtKeystring string) (string, error)

func CheckBearer

func CheckBearer(r *http.Request) (string, error)

func CheckBearerToken

func CheckBearerToken(r *http.Request, jwtKeystring string) (string, error)

func CheckCookie

func CheckCookie(r *http.Request, name string) (string, error)

func CheckGuiaccess

func CheckGuiaccess(r *http.Request, cookiename string, jwtKeystring string) (string, error)

func CheckGuiaccessUsername

func CheckGuiaccessUsername(r *http.Request, cookiename string, jwtKeystring string) (string, error)

func CheckToken

func CheckToken(tokenstr string, jwtKey []byte) (string, error)

func DisplayQRCode

func DisplayQRCode(image image.Image, w http.ResponseWriter, r *http.Request) error

func FirstString

func FirstString(ss []string) string

func GenerateApitoken

func GenerateApitoken(username string, jwtKeystring string, days int) (string, error)

func GenerateToken

func GenerateToken(username string, jwtKeystring string, minutes time.Duration) (string, time.Time, error)

func HttpGet

func HttpGet(urlstr string, seconds time.Duration) (string, error)

func JSONHandleError

func JSONHandleError(w http.ResponseWriter, r *http.Request, errCode string, errDesc string, httpCode int64)

func JwtParseGetCert

func JwtParseGetCert(tokenString string) (jwt.MapClaims, string, error)

func LastString

func LastString(ss []string) string

func TotpGenerate

func TotpGenerate(issuer string, account string) (*otp.Key, error)

func TotpGenerateImgSecret

func TotpGenerateImgSecret(issuer string, account string) (image.Image, string, error)

func TotpQRcode

func TotpQRcode(key *otp.Key) (string, error)

func TotpQRcodeExport

func TotpQRcodeExport(key *otp.Key) (*bytes.Buffer, error)

func TotpQRcodeImage

func TotpQRcodeImage(key *otp.Key) (image.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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