validation

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListener

func NewListener(opts ListenerOptions) jwtware.ValidationListener

NewListener returns a jwtware.ValidationListener that emits audit records and notifies schema observers whenever a token is validated.

Types

type ListenerOptions

type ListenerOptions struct {
	ActivitySink   types.ActivitySink
	Logger         types.Logger
	SchemaNotifier SchemaNotifier
}

ListenerOptions customize the validation listener behaviour.

type SchemaNotifier

type SchemaNotifier interface {
	Notify(ctx context.Context, actorID uuid.UUID, metadata map[string]any)
}

SchemaNotifier receives callbacks whenever an authenticated actor is validated so schema exporters can refresh caches.

Jump to

Keyboard shortcuts

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