[new UD] Improve Keycloak token refreshing #18311
Labels
area/dashboard
area/ts-workspace-client
Issues related to the Che workspace client https://github.com/eclipse/che-workspace-client/
kind/task
Internal things, technical debt, and to-do tasks to be performed.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your task related to a problem? Please describe.
After introducing the
che-workspace-client
in order to perform REST API request in new dashboard (PR) it lost the ability to refresh the Keycloak token.Describe the solution you'd like
The
che-workspace-client
should be able to expose an Axios instance. So, we can register interceptor that refreshes keycloak token. Additionally, we'll be able to refresh token depending on user activity in UD even if no API requests are done.Describe alternatives you've considered
As an alternative solution, provide to
che-workspace-client
ability to add/remove user defined interceptors. That allows us to refresh keycloak token only on API request.The text was updated successfully, but these errors were encountered: