feat: enhance OIDC flow with audit logs and improved error handling

- add audit events for OIDC login and user provisioning
- improve callback error messages and state validation
- add OIDC provider schema and initial migration
This commit is contained in:
neon
2026-04-13 14:44:30 -06:00
parent 75d7aec48d
commit 35594e849e
48 changed files with 2106 additions and 351 deletions
+7
View File
@@ -25,6 +25,13 @@ APP_DATA_PATH=../local/data
# OIDC (optional — configure via admin settings UI; these are just for reference)
# OIDC config is stored in the database (app_settings table, key: oidc_config)
# OIDC runtime tuning (optional — uncomment to override defaults)
# OIDC_STATE_TTL_SECS=600
# OIDC_DISCOVERY_CACHE_TTL_SECS=3600
# OIDC_JWKS_CACHE_TTL_SECS=3600
# OIDC_CLOCK_TOLERANCE_SECS=30
# OIDC_TOKEN_EXCHANGE_TIMEOUT_MS=10000
# App URL (used for building password reset links in emails)
APP_URL=http://localhost:5173