jwt

package
v2.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrations

func GetMigrations(ctx context.Context, provider string) (*embed.FS, error)

GetMigrations returns the migrations for the specified database provider.

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) 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(ctx context.Context, dbProvider string) (*embed.FS, error)

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