authentication

package
v0.0.0-...-a09d7ba Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(w http.ResponseWriter, r *http.Request)

func GenerateJwt

func GenerateJwt(username string, role string, exp time.Time) (string, error)

func ValidationHandler

func ValidationHandler(w http.ResponseWriter, r *http.Request)

Types

type UserCredentials

type UserCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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