auth

package
v0.0.0-...-181bd5f Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTokenProfessor

func CheckTokenProfessor(r *http.Request, secret string) error

func CheckTokenStudent

func CheckTokenStudent(r *http.Request, secret string) error

func ExtractToken

func ExtractToken(r *http.Request) string

func ExtractTokenID

func ExtractTokenID(r *http.Request) (uint32, error)

func GenerateToken

func GenerateToken(secret string, scope []string) (string, error)

func Pretty

func Pretty(data interface{}) error

Pretty display the claims licely in the terminal

Types

This section is empty.

Jump to

Keyboard shortcuts

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