API-Explorer-II/server
simonredfern b2df3a9791 Phase 2: Integrate OAuth2 into application
Application Integration:
- Update server/app.ts to initialize OAuth2Service on startup
  * Conditional initialization based on VITE_USE_OAUTH2 flag
  * OIDC discovery document fetching
  * Comprehensive error handling and logging
  * Graceful fallback if OIDC provider unavailable

UserController Updates:
- Support dual authentication (OAuth 1.0a and OAuth2)
- OAuth2 user session detection and retrieval
- Automatic token refresh when access token expires
- Unified user data format for both auth methods
- Enhanced logout to clear both OAuth 1.0a and OAuth2 sessions
- Comprehensive logging for debugging

Features:
- Seamless switching between auth methods via feature flag
- Backward compatibility maintained
- Automatic token refresh before expiry
- Session cleanup on logout
- Error handling with fallback to empty response

Next phase: Update frontend components for OAuth2 login flow
2025-11-29 19:54:58 +01:00
..
controllers Phase 2: Integrate OAuth2 into application 2025-11-29 19:54:58 +01:00
middlewares Phase 1: Implement OAuth2/OIDC core infrastructure 2025-11-29 19:53:41 +01:00
schema change naming of opeyConsent to obpConsent 2025-03-17 14:58:42 +00:00
services Phase 1: Implement OAuth2/OIDC core infrastructure 2025-11-29 19:53:41 +01:00
test feature/API Explorer II - make v6.0.0 the default version 2025-11-06 11:29:34 +01:00
utils Phase 1: Implement OAuth2/OIDC core infrastructure 2025-11-29 19:53:41 +01:00
app.ts Phase 2: Integrate OAuth2 into application 2025-11-29 19:54:58 +01:00