jwt

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(plugin *JWTPlugin) []models.Route

Types

type JWTHookID

type JWTHookID string
const (
	// Responds with JWT tokens in HTTP Response after issuance
	HookIDJWTRespondJSON JWTHookID = "jwt.respond_json"
)

Constants for jwt plugin hook IDs and metadata

func (JWTHookID) String

func (id JWTHookID) String() string

type JWTPlugin

type JWTPlugin struct {
	Logger models.Logger
	// contains filtered or unexported fields
}

func New

func New(config types.JWTPluginConfig) *JWTPlugin

func (*JWTPlugin) Close

func (p *JWTPlugin) Close() error

func (*JWTPlugin) Config

func (p *JWTPlugin) Config() any

func (*JWTPlugin) DependsOn added in v2.8.0

func (p *JWTPlugin) DependsOn() []string

func (*JWTPlugin) Hooks

func (p *JWTPlugin) Hooks() []models.Hook

func (*JWTPlugin) Init

func (p *JWTPlugin) Init(ctx *models.PluginContext) error

func (*JWTPlugin) Metadata

func (p *JWTPlugin) Metadata() models.PluginMetadata

func (*JWTPlugin) Migrations

func (p *JWTPlugin) Migrations(provider string) []migrations.Migration

func (*JWTPlugin) OnConfigUpdate

func (p *JWTPlugin) OnConfigUpdate(config *models.Config) error

func (*JWTPlugin) Routes

func (p *JWTPlugin) Routes() []models.Route

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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