-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't do anything when token expires in nativeUserMode #20275
Comments
@sparkoo I'm not sure for which component you created this issue(probably for both of Che Server and Dashboard), but I would say Dashboard should get 401 instead of 500, then it can redirect user to the login page. |
Looks like several improvements can be done here. I've created first PR on oauth-proxy configuration to set cookie expire after 24hrs eclipse-che/che-operator#1000 (we may need to make it configurable) This will make life easier when you open the dashboard after token has expired. However, the dashboard is still confused when token expires under it's hands, because it's not refreshing the whole page and on sudden, background requests starts to fail (oauth-proxy is trying to redirect to login page and returns 302). Here I would agree with you that che-server should return 401 or 403 so Dashboard can react better (for example with redirect to |
@sleshchenko I've created new issue for che-server #20304 and this one will be Dashboard issue. |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Describe the bug
having
nativeUserMode: true
, when openshift token expires, dashboard shows only error with no options to do anything.Che version
next (development version)
Steps to reproduce
oc edit oauth cluster
and setExpected behavior
I don't think it's possible to refresh openshift token. So we should probably just logout user and redirect to login page.
First we need to fix che-server part #20304 so it returns 401, then Dashboard should better react to 401 response from che-server.
Workaround
Delete
_oauth_proxy
cookie.Runtime
OpenShift
Screenshots
Installation method
chectl/next
Environment
other (please specify in additional context)
Eclipse Che Logs
Additional context
env: rhpds
first fix che-server issue: #20304
The text was updated successfully, but these errors were encountered: