authx

package
v0.0.0-...-b7dbb59 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authx

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

Authx is a struct that represents the authx.

func NewAuthx

func NewAuthx(app *configx.Application) (*Authx, error)

NewAuthx returns a new Authx.

func NewNil

func NewNil() *Authx

NewNil returns a new Authx with nil.

func (*Authx) ParseJWT

func (a *Authx) ParseJWT() gin.HandlerFunc

ParseJWT is used to parse the jwt.

type CustomClaims

type CustomClaims struct {
	Email       string   `json:"email,omitempty"`
	Permissions []string `json:"permissions,omitempty"`
}

CustomClaims is the custom claims.

func (*CustomClaims) Validate

func (c *CustomClaims) Validate(_ context.Context) error

Jump to

Keyboard shortcuts

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