tududi/backend/modules/oidc
Chris 93bcbc0485
fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060)
Adds automatic scope normalization to prevent URL encoding issues when
OIDC_SCOPE contains extra whitespace, tabs, or newlines. This addresses
issue #1056 where spaces in the scope value could cause authentication
failures in some environments.

Changes:
- Added normalizeScope() function to trim and collapse whitespace
- Automatically adds 'openid' scope if missing with warning
- Updated both single and multi-provider configurations
- Added comprehensive tests for scope normalization edge cases
- Added service tests to verify authorization URL construction
- Updated documentation with scope formatting guidance

Fixes #1056
2026-04-24 13:15:58 +03:00
..
auditService.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
controller.js fix: resolve OIDC session loss and migration failures (#1023) 2026-04-14 07:53:55 +03:00
index.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
oidcIdentityService.js fix: correct Sequelize alias case for OIDCIdentity-User association (#1015) 2026-04-13 19:29:50 +03:00
providerConfig.js fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060) 2026-04-24 13:15:58 +03:00
provisioningService.js fix: resolve OIDC authentication error with existing identities (#1021) 2026-04-14 00:11:32 +03:00
routes.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
service.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
stateManager.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00