auth

package
v0.0.0-...-a83c1e6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRole

func HasRole(roles ...string) gin.HandlerFunc

HasRole middleware, depends on registration of auth.Validator

func ValidateToken

func ValidateToken(certificate string) gin.HandlerFunc

ValidateToken is a middleware to validate the JWT token sent by the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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