Module oidc

Module oidc 

Source
Expand description

OpenID Connect (OIDC) simulation support

This module provides OIDC-compliant endpoints for simulating identity providers, including discovery documents and JSON Web Key Set (JWKS) endpoints.

Structs§

ClaimsConfig
Claims configuration
JwkKey
JSON Web Key configuration
JwkPublicKey
Public JSON Web Key (for JWKS endpoint - no private key)
JwksConfig
JWKS (JSON Web Key Set) configuration
JwksResponse
JWKS response
MultiTenantConfig
Multi-tenant configuration
OidcConfig
OIDC configuration
OidcDiscoveryDocument
OIDC discovery document response
OidcState
OIDC state stored in AuthState
TenantContext
Tenant context for multi-tenant token generation

Functions§

generate_oidc_token
Generate a signed JWT token with default claims from OIDC config
generate_signed_jwt
Generate a signed JWT token with configurable claims
get_jwks
Get JWKS (JSON Web Key Set)
get_jwks_from_state
Get JWKS from OIDC state
get_oidc_discovery
Get OIDC discovery document
load_oidc_state
Helper function to load OIDC state from configuration
oidc_router
Create OIDC router with well-known endpoints