-
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
Enable to load GWT-IDE app on Multi-user with Multi-host env. #13142
Enable to load GWT-IDE app on Multi-user with Multi-host env. #13142
Conversation
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@@ -21,6 +21,16 @@ protected Keycloak() { | |||
super(); | |||
} | |||
|
|||
public static native boolean isMultihostEnvironment() /*-{ | |||
try { | |||
var dummy = $wnd.parent['_keycloak']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dummy var unused here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vparfonov Just for checking here if $wnd.parent['_keycloak']
is readable.
What is the best way to check it?
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
I reviewed the result of ci-integrationt-test https://ci.codenvycorp.com/job/che-pullrequests-test-ocp/1717/. |
@eclipse/eclipse-che-qa can you take a look on test too? |
Can one of the admins verify this PR? |
ci-build |
@SkorikSergey Hmm... It is also built on my CI server (without any caches)... https://dev.azure.com/pizzafactory/camino/_build/results?buildId=575 |
ci-build |
ci-build |
Some code in IDE.html must be skipped because they are done in loader.html. IDE and dashboard cannot share Kyecloak settings because of the closs domain scripting. IDEs must use their machine-token or another way for calling `/api` endpoints. (This patch does not contain patches how to call `/api`. This is just for setting Keycloak off. ) Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
I close this as it was deprecated by #13788. The part of this PR may be required if GWT-IDE was back. |
Alternative of #13026.
What does this PR do?
In "Multi-user with Multi-host" environment,
Some code in IDE.html must be skipped because they are done in loader.html.
IDE and dashboard cannot share (copy) Kyecloak settings because of the cross domain scripting.
So IDEs must check whether itself runs in cross domain and choose their machine-token or another way for calling
/api
endpoints in case it was required.(This patch does not contain patches how to call
/api
. This is just for checking cross-domain and setting Keycloak off. )What issues does this PR fix or reference?
Will fixes #13026 #12585
This may resolve some part of #12243.
After fixes by this PR, GWT-IDE will crashed by #12273.
#13137 is a part of the answer how to call
/api
from GWT-IDE.