Commit a32991d
committed
Add OIDC Session Management component and Docker development setup
Implement OpenID Connect Session Management 1.0 specification in the test Relying Party application with a new SessionMonitor Svelte component that:
- Monitors authentication session state using the OIDC provider's check_session_iframe endpoint
- Periodically checks session status every 5 seconds via postMessage communication with hidden iframe
- Detects session changes (e.g., logout in another tab) and alerts users in real-time
- Displays comprehensive session information including session state, client ID, monitoring status, and last check time
- Handles discovery document fetching and validates provider support for session management
- Provides detailed UI feedback for various states (authenticated, discovery errors, unsupported providers, missing session state)
Enhance Docker development environment with:
- Multi-stage Dockerfile using Node 22 and pnpm for development
- docker-compose.yml setup with Cloudflare tunnel service for public URL access
- Environment variable configuration for PUBLIC_HOST to support public deployments
- Vite server configuration to allow configurable hosts for development
Update environment configuration to support public hosting scenarios and remove debug logging from layout component.1 parent 2e3656d commit a32991d
File tree
6 files changed
+632
-15
lines changed- tests/app/rp
- src
- lib/components
- routes
6 files changed
+632
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments