Commit Graph

1318 Commits

Author SHA1 Message Date
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
c5f7fcc06b Merge pull request #406 from Monadical-SAS/opt-out-of-recording
Opt out of recording
2024-09-05 15:08:33 +02:00
7587499844 Opt out of recording 2024-09-05 15:04:49 +02:00
15c95d6bfa Remove new meeting button 2024-09-05 14:01:03 +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
6aab6ac3fa fix: fix global layout overscroll + link colors (#404) 2024-09-04 17:26:23 +02:00
c80d59e23f Merge pull request #403 from Monadical-SAS/room-config
Room config
2024-09-04 13:58:29 +02:00
6c76ec57f2 Update metadata url 2024-09-04 13:33:34 +02:00
f5f8992b79 Automatic recording by default 2024-09-04 12:57:05 +02:00
5c89a07996 Room config 2024-09-04 12:34:28 +02:00
42796d7d3f fix: rework main page to use Chakra, and a little bit of the browse page (#402) 2024-09-04 03:27:20 +02:00
873cbb0a42 fix: user migration confusion with user_id (#401)
+ added tests
2024-09-03 22:07:36 +02:00
a358bfadf1 fix: user.get does not exist 2024-09-03 13:08:36 -06: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
28fe6c11f7 Merge pull request #399 from Monadical-SAS/fullscreen-rooms
Fullscreen rooms
2024-09-02 15:43:48 +02:00
b84efd1c61 Refactor getConfig calls 2024-09-02 12:16:06 +02:00
e01a4dbd9a Get config domain from env var 2024-09-02 12:03:45 +02:00
bda4e1cdc0 Redirect to past meeting authenticated users 2024-09-02 11:51:58 +02:00
2b157c7c8a Show fullscreen room 2024-09-01 01:26:15 +02:00
b019e81b9b Remove domain segment 2024-09-01 01:20:00 +02:00
83756116a6 Update packages 2024-08-30 21:26:11 +02:00
72e23cdd23 Merge pull request #397 from Monadical-SAS/shorter-room-urls
Shorten room urls
2024-08-30 12:59:10 +02:00
14212c802d Shorten room urls 2024-08-30 12:38:14 +02:00
dc609e2fd4 Merge pull request #395 from Monadical-SAS/fix-transcript-url
Fix transcript url
2024-08-28 14:44:03 +02:00
bd965cc5a1 Fix transcript url 2024-08-28 14:41:22 +02:00
347abe2061 Merge pull request #394 from Monadical-SAS/zulip-auto-post
Zulip auto post
2024-08-28 13:56:34 +02:00
f7d2cdea2a Fix linting 2024-08-28 13:44:24 +02:00
2e7ae9a6ab Celery task for posting 2024-08-28 13:42:08 +02:00
c2595b616b Zulip auto post 2024-08-27 01:04:04 +02:00
c76d2ba1c6 Merge pull request #390 from Monadical-SAS/redirect-rooms-to-login
Redirect rooms to login
2024-08-22 22:56:34 +02:00
ef29913036 Redirect rooms to login 2024-08-22 22:53:35 +02:00
1501d8bf51 Merge pull request #389 from Monadical-SAS/fix-imports
Fix meeting imports
2024-08-22 22:11:31 +02:00
6cacc4c9ab Fix meeting imports 2024-08-22 22:10:40 +02:00
df9cb8f788 Merge pull request #388 from Monadical-SAS/fix-transcript-link
Fix transcript link to meeting
2024-08-22 22:06:04 +02:00
f4700f5b8c Remove unused imports 2024-08-22 22:02:07 +02:00
9df5385ff3 Fix transcript link to meeting 2024-08-22 21:46:55 +02:00
409e326fc9 Merge pull request #297 from Monadical-SAS/reenable-non-latin-languages
Re-enable Non-Latin Languages
2024-08-21 11:33:20 +02:00
ad228e4e4b Merge pull request #377 from Monadical-SAS/setup-and-upgrade
Setup and upgrade
2024-08-21 11:30:23 +02:00
c24b42656b Merge pull request #378 from Monadical-SAS/whereby-embedded
Whereby embedded
2024-08-20 13:39:23 +02:00
b01511fa86 Fix linting 2024-08-20 12:52:40 +02:00
35d459a527 Increase meeting length 2024-08-20 12:43:10 +02:00
55697e670d Permanent room urls 2024-08-19 17:56:32 +02:00
ad84e4626c Require login for whereby meeting 2024-08-13 14:17:06 +02:00
Sara
918daff66d more flexible poetry 2024-08-12 12:24:32 +02:00
Sara
004787c055 upgrade modal 2024-08-12 12:24:14 +02:00
Sara
a4077005b2 Setup instuctions 2024-08-12 12:22:21 +02:00
2381428ae2 Link recorded meeting to a transcript 2024-08-09 17:30:45 +02:00
b1527ad7b3 Process recordings uploaded to s3 2024-07-29 16:37:11 +02:00
c0aa615d12 Merge pull request #376 from Monadical-SAS/fix-broken-tests
Fix broken test
2024-07-19 12:33:00 +02:00
9b36adedae Fix broken test 2024-07-19 12:30:01 +02:00