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.
Click to show internal directories.
Click to hide internal directories.