stormsetup

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTenant

func SetupTenant(cfg TenantConfig) http.Handler

SetupTenant creates a complete OIDC tenant with all core plugins registered. Returns an http.Handler ready to be mounted on a router.

Types

type TenantConfig

type TenantConfig struct {
	Issuer            string
	SigningAlgorithms []string
	CryptoMethod      string
	Logger            *slog.Logger
	Discovery         storm.DiscoveryConfig
	Storage           *storage.Storage  // optional, if provided will be used instead of creating a new one
	UserStore         storage.UserStore // optional, defaults to in-memory
	Clients           []*storage.Client // clients to register
	AllowPrivateIPs   bool              // WARNING: disables SSRF protection. Only for testing.
	SkipTLSCertVerify bool              // WARNING: disables TLS cert verification. Only for testing.
	RequireDPoP       bool              // FAPI 2.0: require DPoP proof for all token requests
	RequireMtls       bool              // FAPI 2.0: require mTLS client certificate for all token requests
}

TenantConfig configures a single OIDC tenant.

Jump to

Keyboard shortcuts

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