Commit Graph

75 Commits

Author SHA1 Message Date
Igor Loskutov
7bb2962f94 consent preparation 2025-06-17 12:18:41 -04:00
405c7c5a60 Reload page on leave 2025-02-05 02:24:43 +01:00
481529245a Webinar dry run 2025-02-04 13:33:22 +01:00
de8544a126 Update room config zulip streams 2024-09-24 15:22:43 +02:00
d04e617607 Remove nextjs zulip api 2024-09-06 17:31:09 +02:00
db714f6390 fix: unattended component reload due to session changes (#407)
* fix: unattended component reload due to session changes

When the session is updated, status goes back to loading then
authenticated or unauthenticated. session.accessTokenExpires may also be
updated.

This triggered various component refresh at unattented times, and brake
the user experience.

By splitting to only what's needed with memoization, it will prevent
unattented refresh.

* review

* review: change syntax
2024-09-05 18:46:47 +02:00
833a5d1191 fix: sso refresh token race condition (#405)
With NextAuth, there is a race condition of the current implementation
of refreshToken using multiple tab. Because getSession() is broadcasted
(or triggered by another component, window focus or such), we may ask
for the jwt() to be refreshed at the same time.

The problem is the first time will go correctly, while all others calls
will be rejected as they are using a revoked token.

This redis lock is per-user, and will use redis lock as a source of
truth.
2024-09-05 00:47:02 +02:00
03561453c5 feat: Monadical SSO as replacement of Fief (#393)
* sso: first pass for integrating SSO

still have issue on refreshing
maybe customize the login page, or completely avoid it
make 100% to understand how session server/client are working
need to test with different configuration option (features flags and
requireLogin)

* sso: correctly handle refresh token, with pro-active refresh

Going on interceptors make extra calls to reflector when 401.
We need then to circle back with NextJS backend to update the jwt,
session, then retry the failed request.

I prefered to go pro-active, and ensure the session AND jwt are always
up to date.

A minute before the expiration, we'll try to refresh it. useEffect() of
NextJS cannot be asynchronous, so we cannot wait for the token to be
refreshed.

Every 20s, a minute before the expiration (so 3x in total max) we'll try
to renew. When the accessToken is renewed, the session is updated, and
dispatching up to the client, which updates the useApi().

Therefore, no component will left without a incorrect token.

* fixes: issue with missing key on react-select-search because the default value is undefined

* sso: fixes login/logout button, and avoid seeing the login with authentik page when clicking

* sso: ensure /transcripts/new is not behind protected page, and feature flags page are honored

* sso: fixes user sub->id

* fixes: remove old layout not used

* fixes: set default NEXT_PUBLIC_SITE_URL as localhost

* fixes: removing fief again due to merge with main

* sso: ensure session is always ready before doing any action

* sso: add migration from fief to jwt in server, only from transcripts list

* fixes: user tests

* fixes: compilation issues
2024-09-03 19:27:15 +02:00
b84efd1c61 Refactor getConfig calls 2024-09-02 12:16:06 +02:00
b019e81b9b Remove domain segment 2024-09-01 01:20:00 +02:00
ef29913036 Redirect rooms to login 2024-08-22 22:53:35 +02:00
c36b64cff1 Upgrade to latest openapi codegen 2024-07-03 14:21:38 +02:00
10045ed9de Fix send to zulip duration 2024-06-06 15:11:03 +02:00
42bdabbc1b Merge pull request #335 from Monadical-SAS/sara/UI-improvements
Sara/UI improvements & fix transcript deletion
2024-05-28 12:28:50 +02:00
Sara
20681b0810 Improvements based on feedback 2024-01-25 13:51:22 +01:00
Sara
5b3b6a80df fix regions 2024-01-12 14:57:41 +01:00
Andreas
bc421db43e Update useApi.ts 2024-01-03 20:51:11 +07:00
Andreas
15e3236ab9 Final touches and testing 2023-12-28 16:04:27 +07:00
Koper
9f42c4d8a7 NextJS 14 experimental upgrade 2023-12-26 20:49:40 +07:00
Andreas
a559d4d224 New openapi generator - experimental 2023-12-20 23:19:24 +07:00
43a3e17c0b WIP 2023-12-20 12:02:10 +01:00
Andreas Bonini
69443603fb Merge pull request #329 from Monadical-SAS/better-speaker-name-colors
Speaker Names Have Better Contrast (but less variety)
2023-12-15 16:57:29 +07:00
Sara
c693857dcc fix non-dev 2023-12-14 16:34:41 +01:00
Sara
c4557bb9e2 fix non-dev 2023-12-14 16:21:59 +01:00
Sara
84d06348e5 move config 2023-12-14 16:04:29 +01:00
Koper
e89db60b58 My last commit while I am still 35 2023-12-07 23:57:02 +07:00
Koper
6f48aa8835 If sendToZulip is disabled, then <ShareModal /> won't be loaded 2023-12-05 21:28:38 +07:00
Koper
ea72ca42fd Removed top <hr/> 2023-12-05 20:34:17 +07:00
Koper
9df6ab4429 Added feature for "sendToZulip", fixed visual issue, .gitignore for db dump files 2023-12-05 20:17:25 +07:00
Koper
8178f45a9a Update edgeConfig.ts 2023-12-04 22:02:42 +07:00
Koper
a27220ea37 Remove unnecessary files 2023-12-04 21:57:30 +07:00
Koper
7e29a0bf14 Merge branch 'main' into post-to-zulip 2023-12-04 21:06:10 +07:00
Koper
999a3e05a4 Temp commit to merge main into this branch 2023-12-04 20:54:54 +07:00
Koper
5dad782042 Better contrast 2023-11-30 21:29:08 +07:00
Sara
f14e6f5a7f fix auth 2023-11-22 13:27:02 +01:00
Sara
f38dad3ad4 small fixes and start auth fix 2023-11-22 12:26:40 +01:00
Koper
ba40d28152 Send to zulip 2023-11-20 21:39:33 +07:00
Sara
1fc261a669 try to move waveform to pipeline 2023-11-15 20:30:00 +01:00
Sara
4103fd82de remove console logs 2023-11-08 17:40:55 +01:00
Sara
68ee6a20a4 remove timeout 2023-11-08 16:24:09 +01:00
Sara
92b728363e rename error util 2023-11-08 16:17:03 +01:00
Sara
26330b9de2 Triage error and better websocket handling 2023-11-03 17:15:03 +01:00
Sara
3339368d94 Merge branch 'main' of github.com:Monadical-SAS/reflector into sara/fix-api-auth 2023-11-03 12:27:37 +01:00
Sara
827dd6d406 Merge branch 'fix-mp3-download-while-authenticated' into sara/fix-api-auth 2023-11-03 12:10:48 +01:00
Sara
45287b4d22 Merge pull request #301 from Monadical-SAS/sara/fix-websockets
fixes websockets
2023-11-03 11:53:55 +01:00
Sara
fbba20e136 fixes websockets 2023-11-02 18:56:09 +01:00
Koper
16a8579272 Removed console.log 2023-11-02 17:39:21 +01:00
Koper
5f00673ebd Implemented speaker color functions 2023-11-02 17:39:21 +01:00
Sara
82a9a1764a effect dependency fix 2023-11-02 16:10:25 +01:00
Sara
e65efb841f fix api auth 2023-11-02 16:03:10 +01:00