helizauth

package module
v0.0.0-...-2f1393c Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, wanted string) bool

func JwtAuthentication

func JwtAuthentication(next http.Handler) http.Handler

func Message

func Message(status bool, message string) map[string]interface{}

func Respond

func Respond(w http.ResponseWriter, data map[string]interface{})

Types

type HelizClaims

type HelizClaims struct {
	Email  string   `json:"email"`
	Scopes []string `json:"scopes"`
	jwt.StandardClaims
}

Create a struct that will be encoded to a JWT. We add jwt.StandardClaims as an embedded type, to provide fields like expiry time

Jump to

Keyboard shortcuts

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