API-Explorer-II/server/controllers
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
..
CallbackController.ts add current user info to /api/status page 2024-12-09 18:51:54 +01:00
ConnectController.ts update copyright notice 2024-05-14 17:10:19 +02:00
OAuth2CallbackController.ts Phase 1: Implement OAuth2/OIDC core infrastructure 2025-11-29 19:53:41 +01:00
OAuth2ConnectController.ts Phase 1: Implement OAuth2/OIDC core infrastructure 2025-11-29 19:53:41 +01:00
OpeyIIController.ts add consent expiry checking 2025-04-21 15:32:49 +01:00
RequestController.ts update copyright notice 2024-05-14 17:10:19 +02:00
StatusController.ts Remove 'kafka_vSept2018' connector from StatusController and message-docs 2025-08-07 12:58:53 +02:00
UserController.ts Phase 2: Integrate OAuth2 into application 2025-11-29 19:54:58 +01:00