-
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
[Hosted che] Openshift oAuth returns invalid token #17020
Comments
sorry, not following what is the expected behaviour? Have you seen #16890 ? |
The expected behaviour should be a valid openshift token response from the |
#16890 needs this to login automatically |
@vinokurig could you clarify how the plugin works atm? as you can see it login to the *-che namespace: https://user-images.githubusercontent.com/1461122/81581490-1808a100-93af-11ea-9cf2-fd8a44a7f262.png I do not understand what is expected to be done on Hosted Che end. Also see: #16890 (comment) |
It is loged in as |
@vinokurig based on the #16890 (comment) It looks like it is not a good idea to fall back on che specific API. Also, I do not understand why if the login is failing the OpenShift connector still logs in to the *-che namespace correctly? (what login mechanism is used there?) https://user-images.githubusercontent.com/1461122/81581490-1808a100-93af-11ea-9cf2-fd8a44a7f262.png @ericwill wdyt about closing the issue in favor of #16890 and continue the discussion in one place? |
Yes, sure. @vinokurig let's continue the discussion in #16890 |
Openshift oAuth provider returns invalid token for the Openshift which runs hosted Che.
Describe the bug
Che version
Steps to reproduce
curl -H 'Authorization: Bearer <user token>' https://che.openshift.io/api/oauth/token?oauth_provider=openshift
and see the tokenoc get user --token <token from the request>
It is strange that the oauth/token request can return a token even without specifying
oauth_provider
parameter (curl -H 'Authorization: Bearer <user token>' https://che.openshift.io/api/oauth/token
)Expected behavior
The token must be valid
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
chectl version
commandEnvironment
Eclipse Che Logs
Additional context
The text was updated successfully, but these errors were encountered: