You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users are logged out without warning, probably caused by the login oauth token expiring and not being properly refreshed, as required since gitlab 15. It is no longer possible to have non-expiring tokens in gitlab.
To Reproduce
Login using PKCE/gitlab backend (see config below)
Wait for two hours (the standard expiration time of gitlab oauth tokens)
Scheduled calls to the gitlab user endpoint now starts returning 401 errors
Expected behavior
The scheduled call to user should refresh the oauth token and keep the user signed in.
The toast error message saying the user has been logged out is visible only briefly, and if the user is away from their computer they might completely miss it. Error messages such as this should stay visible. Once the user is logged out, the error message for any server interaction changes to the non-descriptive API_ERROR.
The text was updated successfully, but these errors were encountered:
Describe the bug
Users are logged out without warning, probably caused by the login oauth token expiring and not being properly refreshed, as required since gitlab 15. It is no longer possible to have non-expiring tokens in gitlab.
To Reproduce
user
endpoint now starts returning 401 errorsExpected behavior
The scheduled call to
user
should refresh the oauth token and keep the user signed in.Request logs
still working request:
still ok response:
minutes later, another request to /user:
which results in a 401
Applicable Versions:
CMS configuration
Additional context
The toast error message saying the user has been logged out is visible only briefly, and if the user is away from their computer they might completely miss it. Error messages such as this should stay visible. Once the user is logged out, the error message for any server interaction changes to the non-descriptive API_ERROR.
The text was updated successfully, but these errors were encountered: