Commit 3fbee9f
authored
feat(meetings): add join URL endpoint and simplify auth middleware (#79)
* feat(meetings): add join URL endpoint and simplify auth middleware
- Add GET /api/meetings/:uid/join-url endpoint for fetching meeting join URLs
- Create MeetingJoinURL interface for type safety
- Update public meeting controller to fetch join URLs for public meetings
- Simplify authentication middleware by removing redundant authContext
- Create unified authMiddleware replacing dual middleware system
- Use req.oidc directly from OIDC middleware
- Add comprehensive debug logging for authentication troubleshooting
- Remove obsolete auth-token.middleware.ts and protected-routes.middleware.ts
LFXV2-417 LFXV2-452
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(auth): prevent authentication bypass and fix Authorization header
- Fix critical security vulnerability where non-GET requests to protected SSR routes bypassed authentication
- Add proper 401 error handling for non-GET requests to protected SSR routes
- Fix Authorization header being set to 'Bearer undefined' when bearerToken is not provided
- Make Authorization header conditional in ApiClientService based on bearerToken presence
LFXV2-417
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(server): remove deprecated function
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(auth): added ui auth guards
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(auth): simplify authentication check and improve performance
- Remove async checkAuthentication function to simplify auth flow
- Remove user from AuthMiddlewareResult interface for cleaner separation
- Optimize user info fetching in server.ts with fallback logic
- Remove unnecessary build step from e2e-tests workflow
- Clean up imports and debug logging in meeting service
- Add debug logging to proxy service for better observability
LFXV2-417
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(test): revert build step removal
Signed-off-by: Asitha de Silva <asithade@gmail.com>
---------
Signed-off-by: Asitha de Silva <asithade@gmail.com>1 parent 60b83fa commit 3fbee9f
File tree
19 files changed
+683
-196
lines changed- .vscode
- apps/lfx-pcc/src
- app
- modules/meeting
- server
- controllers
- middleware
- routes
- services
- utils
19 files changed
+683
-196
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
| 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 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
636 | 679 | | |
637 | 680 | | |
638 | 681 | | |
| |||
Lines changed: 67 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
66 | 104 | | |
67 | 105 | | |
68 | 106 | | |
69 | 107 | | |
70 | 108 | | |
71 | | - | |
| 109 | + | |
72 | 110 | | |
73 | 111 | | |
74 | 112 | | |
75 | 113 | | |
76 | 114 | | |
77 | 115 | | |
78 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
79 | 140 | | |
80 | 141 | | |
81 | 142 | | |
| |||
Lines changed: 0 additions & 55 deletions
This file was deleted.
0 commit comments