[Bug] 401 Unauthorised Error because of an old auth token used during coming back from study to studies list. #4185
Labels
fixed-in-dev-await-release
This issue is fixed in master (viewer-dev) but we are pending testing for release (viewer.ohif.org)
Describe the Bug
If we use authentication, such as Keycloak, with OHIF, we encounter an issue when returning from the study to the study list. Instead of returning, we encounter the 401 Error and are redirected to the
/not found server
URL. This happens if we spend with study more than 5 minutes (token refresh time).Based on our investigation, the application uses an outdated token. It works as expected if we manually copy the latest refreshed token from the network tab and make a network call.
Steps to Reproduce
The current behavior
When we go to the studies list after a time longer than the token refresh cycle, we get the 401 Error.
The expected behavior
The OHIF application should update the token in the request properly, and we should be able to access the studies list without any issues.
OS
macOS 14.5 (23F79)
Node version
v18.20.3
Browser
125.0.6422.113 (Official Build) (arm64)
The text was updated successfully, but these errors were encountered: