auth

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserClaimFormContext

func GetUserClaimFormContext(c echo.Context) (types.UserClaims, error)

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func New

func New(validator *jwtvalidator.Validator) *Middleware

func (*Middleware) RequireAuth

func (m *Middleware) RequireAuth(next echo.HandlerFunc) echo.HandlerFunc

RequireAuth (Authentication).

func (*Middleware) RequireRole

func (m *Middleware) RequireRole(roles []types.Role) func(next echo.HandlerFunc) echo.HandlerFunc

Jump to

Keyboard shortcuts

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