tududi/backend/tests/unit/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.test.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
providerConfig.test.js fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060) 2026-04-24 13:15:58 +03:00
provisioningService.test.js fix: resolve OIDC authentication error with existing identities (#1021) 2026-04-14 00:11:32 +03:00
service.test.js fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060) 2026-04-24 13:15:58 +03:00
stateManager.test.js feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00