Commit Graph

14 Commits

Author SHA1 Message Date
simonredfern
4a5239e5aa OAuth2 tweaks 2025-12-02 01:11:17 +01:00
simonredfern
dc69f9664d OAuth2 login first step works 2025-12-01 11:07:05 +01:00
simonredfern
d14fb57005 OAuth1 to OAuth2 2025-11-30 10:11:51 +01:00
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
Nemo Godebski-Pedersen
f4fa0e4ce9 fix page redirect when logout 2025-05-20 18:12:52 +07:00
Marko Milić
b8f23b6b5b docfix/Add more logging regarding the logoff feature 2024-10-03 10:26:40 +02:00
tawoe
6cdb40ca5a update copyright notice 2024-05-14 17:10:19 +02:00
tawoe
31980f38f3 update copyright notice 2024-05-14 13:41:52 +02:00
Marko Milić
0d5175b405 docfix/Rename VITE_OBP_EXPLORER_HOST to VITE_OBP_API_EXPLORER_HOST 2024-05-08 16:55:30 +02:00
ma-silva
c61c3c4e9f FIX: log off 2023-06-05 23:39:20 +08:00
ma-silva
419a6d8473 FIX: user login 2023-06-05 23:32:25 +08:00
ma-silva
f9c0b103ff FIX: home page, login username
FEAT:logoff
2023-05-25 05:57:08 +08:00
ma-silva
df83981524 REFACTOR: authentication and styling
WIP: caching and get/post request
2023-04-25 16:45:58 +08:00
ma-silva
3fa5e96bfe FEATURE: server side api 2023-04-20 14:03:07 +08:00