middleware

package
v0.2.65 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protect

func Protect(cfg *iauth.Config, sessions *iauth.Manager) func(http.Handler) http.Handler

Protect returns a middleware that, when enabled, requires authentication on /v1/api/* and /v1/workspace/*, except for /v1/api/auth/* and OPTIONS. It accepts either a valid cookie session (local/bff) or, when mode includes oidc, a Bearer token (TODO: integrate Datly auth validation).

func WithAuthConfig

func WithAuthConfig(next http.Handler, cfg *iauth.Config) http.Handler

WithAuthConfig injects auth config into request context for downstream checks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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