authentication

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime contains authentication mechanisms assembled during server startup and evaluates framework-neutral authentication requests.

func NewRuntime

func NewRuntime(logger *slog.Logger, auth config.AuthConfig) *Runtime

NewRuntime assembles configured authentication mechanisms and swallows plugin startup failures so request handling retains the existing fallback behavior.

func NewRuntimeStrict added in v0.4.2

func NewRuntimeStrict(logger *slog.Logger, auth config.AuthConfig) (*Runtime, error)

func (*Runtime) Close added in v0.4.2

func (r *Runtime) Close()

Close terminates plugin processes owned by this runtime in reverse startup order. Built-in authentication mechanisms do not own external resources.

func (*Runtime) Evaluate

Evaluate composes configured authentication mechanisms without depending on Fiber.

Jump to

Keyboard shortcuts

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