iam

package
v0.0.0-...-c04fabd Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(token *jwt.Token) (interface{}, error)

GetKey is the KeyFunc for the JWT middleware to supply the key for verification.

func HasRole

func HasRole(roleList []string, role string) bool

HasRole checks if a slice contains a specific element

func JWTAuthMW

func JWTAuthMW() echo.MiddlewareFunc

JWTAuth initializes and returns the JWT middleware.

func ParseRealmRoles

func ParseRealmRoles(claims jwt.MapClaims) []string

func SessionCheckerMW

func SessionCheckerMW(next echo.HandlerFunc) echo.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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