Documentation
¶
Index ¶
- func GetMigrations(ctx context.Context, provider string) (*embed.FS, error)
- func Routes(plugin *JWTPlugin) []models.Route
- type JWTHookID
- type JWTPlugin
- func (p *JWTPlugin) Close() error
- func (p *JWTPlugin) Config() any
- func (p *JWTPlugin) Hooks() []models.Hook
- func (p *JWTPlugin) Init(ctx *models.PluginContext) error
- func (p *JWTPlugin) Metadata() models.PluginMetadata
- func (p *JWTPlugin) Migrations(ctx context.Context, dbProvider string) (*embed.FS, error)
- func (p *JWTPlugin) OnConfigUpdate(config *models.Config) error
- func (p *JWTPlugin) Routes() []models.Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrations ¶
GetMigrations returns the migrations for the specified database provider.
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
type JWTPlugin ¶
func New ¶
func New(config types.JWTPluginConfig) *JWTPlugin
func (*JWTPlugin) Metadata ¶
func (p *JWTPlugin) Metadata() models.PluginMetadata
func (*JWTPlugin) Migrations ¶
Click to show internal directories.
Click to hide internal directories.