-
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
Make it possible to use keycloak from workspace IDE part #15621
Comments
@l0rd @benoitf @skabashnyuk WDYT? |
As I remember last time this topic was touch it was a big security concern for OSIO. |
As it's part of github Pull requests, from UX perspective, I guess the user doesn't want to authenticate twice ? |
It is a part of github Pull request flow and this one is needed to NOT to authenticate twice.
I don't know another ways to get a jwt token except keycloak service |
At this moment I don't see a way how to get keycloak token from the IDE part or exchange machine token to keycloak token. |
@vinokurig I am not sure I understand what you are trying to solve here (I suspect that #14217 is outdated) so let me try to summarize it here: The Context The Problem The (obvious) Solution The (alternative) Solution @vinokurig @ericwill if the description is correct please update #14217 and in particular:
|
Before start working on the GitHub plugin we need to be sure that we can retrieve GitHub token from IDE side.
Because the GitHub PR plugin is located in the IDE side.
It can be a solution, but we all have to be agree with it. I think we need to schedule a meeting for this question. |
@vinokurig we can have a brief discussion about it tomorrow during prioritization. If we need more time let's have a dedicated call. |
Is your task related to a problem? Please describe.
Dashboard loads keycloak script to be able to retrieve authorisation token:
https://github.com/eclipse/che/blob/dfdc304120cb3286071f4f8a0ded2df0d9b805e4/dashboard/src/app/index.module.ts#L71-L77
We need to have the same mechanism for all
IDE
containers to be able to authorise api requests with jwt token e.g oAuth request:https://github.com/eclipse/che/blob/11bbcf0c10cd7cb30a9643ee5ddf9bc59d9677b1/multiuser/keycloak/che-multiuser-keycloak-server/src/main/java/org/eclipse/che/multiuser/keycloak/server/oauth2/DelegatedOAuthAPI.java#L60-L63
The problem is that the IDE url e.g
http://serverliy59p5x-jwtproxy-server-4401.192.168.99.181.nip.io/
is not static like the dashboard url, but the keycloak oauth requiresredirect URI
which is not so flexible: https://issues.redhat.com/browse/KEYCLOAK-5943?jql=text%20~%20%22Valid%20Redirect%20URIs%22.The other problem is that keycloak in Che is configured to use
Web Origins
with the dashboard url, and it doesn't support url patterns as well:Describe the solution you'd like
Allowing all redirect Uris and disabling CORS Web origins in keycloak will make it possible to apply keycloak in an
IDE
client.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: