13 Commits
Author SHA1 Message Date
alamin-br ba24b135b2 fix: rotate refresh tokens and revoke the session when an old one is reused (#6519)
* fix: rotate refresh tokens and revoke the session when an old one is reused

A refresh token could be replayed to get new access tokens until it expired,
so a leaked token gave access for up to seven days.

* test: mint the refresh token inside the frozen time

The token was minted at the real time, so refreshing at an earlier frozen time failed once the clock passed it.

* fix: document the rotated refresh token in the token refresh response

The schema checked simplejwt's own rotation setting, which is off, so the API docs left out refresh_token.

* fix: keep the user session valid across refresh token rotation

The previous release crashed on the new cookie payload, and the cookie stopped
working as soon as its refresh token rotated.

* test: sign out through the API in the secure file serve test

Signing out revokes the session, which is what the user session cookie checks now.
2026-10-28 13:39:52 +01:00
dimmur-brw 3a431d246c fix (nuxt): instance unavailable errors (#5064) 2026-04-07 07:18:29 +02:00
Jonathan Adeline 3178e90009 Fix multiple refresh token api calls (#4715)
* fix: ensure external navigation to login on refresh token failure

* refactor: remove old Nuxt 2 middleware comment and clarify 401 redirect behavior.
2026-02-10 20:14:20 +04:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Przemyslaw Kukulski e138f0ba54 Secured file access not working when authenticated with SSO 2025-03-04 08:52:27 +00:00
Davide Silvestri 25cf6c6420 Stop deleting the refresh token for a network error 2023-01-09 13:21:55 +00:00
Davide Silvestri 43d02379c5 Fix bug when authentication middleware fails to renew the token 2022-12-01 10:15:59 +00:00
Davide Silvestri 0d6cd7a644 Resolve "Frontend fails to renew the access token after a network error" 2022-11-24 10:19:27 +00:00
Davide Silvestri 4895f8a5f7 Resolve "SSO: Add SAML2 endpoints" 2022-10-28 16:04:23 +00:00
Davide Silvestri 87960cb885 Resolve "Fix the refresh_token for longer user sessions" 2022-10-27 09:45:34 +00:00
Bram Wiepjes 01c8e650f6 Resolve "Look into the cookies for non secured connections" 2020-11-22 14:50:36 +00:00
Bram Wiepjes b27f453050 Resolve "Upgrade python and js dependencies." 2020-03-31 14:15:27 +00:00
Bram Wiepjes be2c5c4d4f Resolve "Web frontend refactor" 2020-03-27 13:19:43 +00:00