Commit Graph

12 Commits

Author SHA1 Message Date
simonredfern
ed5de46361 Glad you're happy! 2025-12-05 12:05:17 +01:00
simonredfern
6d1aac927e Add Svelte 5 and convert CodeBlock component 2025-12-02 14:39:19 +01:00
simonredfern
d14fb57005 OAuth1 to OAuth2 2025-11-30 10:11:51 +01:00
simonredfern
86295f827a Phase 1: Implement OAuth2/OIDC core infrastructure
Backend Implementation:
- Add arctic and jsonwebtoken dependencies
- Create PKCEUtils for OAuth2 PKCE flow (RFC 7636)
- Create OAuth2Service for OIDC provider integration
  * OIDC discovery (.well-known/openid-configuration)
  * Authorization URL generation with PKCE
  * Token exchange (code for access/refresh/ID tokens)
  * Token refresh flow
  * UserInfo endpoint integration
- Create OAuth2AuthorizationMiddleware (initiate auth flow)
- Create OAuth2CallbackMiddleware (handle provider callback)
- Create OAuth2ConnectController (/oauth2/connect endpoint)
- Create OAuth2CallbackController (/oauth2/callback endpoint)

Configuration:
- Add OAuth2 environment variables to env_ai
- Feature flag VITE_USE_OAUTH2 for gradual migration
- Support for OBP-OIDC provider

Features:
- PKCE (Proof Key for Code Exchange) support
- State parameter for CSRF protection
- Session-based token storage
- Comprehensive error handling
- Security best practices (token expiration, flow timeout)

Note: Backend infrastructure complete. Next phase: integrate with app.ts
and update UserController for dual auth support.
2025-11-29 19:53:41 +01:00
Nemo Godebski-Pedersen
5e78b4f1b0 improve tool messages with copy to clipboard and styling 2025-04-08 16:30:19 +01:00
Nemo Godebski-Pedersen
8418a6dea5 move integration testing to full playwright framework 2025-03-26 12:59:39 +00:00
Nemo Godebski-Pedersen
74a0deaac8 add status indicators to tool messages 2025-03-26 09:36:58 +00:00
Nemo Godebski-Pedersen
8a660065f7 tool messages WIP and add integration test framework 2025-03-25 11:06:42 +00:00
Nemo Godebski-Pedersen
068ec53049 remove broken package from lockfile 2025-03-12 14:42:40 +01:00
Nemo Godebski-Pedersen
b3afe35a6c add package-lock to version control 2025-03-12 13:16:50 +01:00
ma-silva
efa7ff4ef0 REFACTOR: moved obp client to backend 2023-05-04 01:17:01 +08:00
ma-silva
1f6c3dbe91 WIP: API-Explorer-II 2023-03-29 23:22:33 +08:00