Commit Graph

15 Commits (bbc7e7d751c02ebcd4523922a9b53dba54a22d85)

Author SHA1 Message Date
David Festal 9560a437ab
Reuse the Dashboard Keycloak instance in IDE frames when possible (#11794)
* Reuse the Dashboard Keycloak instance in IDE frames when possible

This avoids one or 2 authentication flows between the real IDE loading,
and decrease the overall IDE loading process by 5 seconds or more.

(5-6 seconds out of 10-12s in my case)

Signed-off-by: David Festal <dfestal@redhat.com>
2018-11-05 12:13:20 +01:00
David Festal 534a961e84
Provide better compatibility with alternate OIDC providers (#11090)
Currently in Che there are still a number of requirements in upstream that are not required by the OIDC specification, so that Che still cannot be used with a number of OIDC compliant providers.
For example, in order to have Che working with the [`node-oidc-provider`](https://github.com/panva/node-oidc-provider), the following changes were necessary:

- Remove the requirement to have the email as a claim in the JWT access
token: this is not required the specification and is not supported by a
number of OIDC providers. Normally, the Id token contains such claims.

  So now if the email is not in the JWT token the first time the user connects to Che, ten the email is retrieved from the OIDC provider through its `user-profile` endpoint.

- Explicitely specify the the `openid email profile` scope when requesting the access token. Because OIDC providers, when answering to the `userInfo` endpoint, are expected to return claims that corresponds to the scopes of the access token. So if an access token has the `openid` scope only, the `userinfo` might return no claim at all (according to the specification).

  Until now it was working since keycloak allows adding claims to the returned tokens anyway.

- Allow supporting fixed redirect Uris: most OIDC providers support having a list of redirect URIs to come back to after the authorization step.  But these authorized Uris don't necessarily support wildcards or prefix. Che doesn't support this currently, and these changes introduce 2 fixed callback HTML pages that redirect to the Dashboard / IDE URL of the final page we want to come back to after authentication. This makes Che compatible with more OIDC providers

  We introduced a new boolean property to enable / disable fixed redirect URLs:
  `che.keycloak.use_fixed_redirect_urls` 
  whose default value is `false`

- The previous points required some light changes in the Keycloak Javascript adapter file, that we will submit as a PR to the Keycloak project. I, the meantime the `OIDCKeycloak.js` file is still used, but has been updated to be now based on the `keycloak.js` file of the last `4.5.0-final` Keycloak release. This will make this Keycloak PR easier to get accepted.

  Please keep in mind that this version upgrade only impacts the alternate OIDC provider case: when using a real Keycloak server, Che *always uses the `keycloak.js` file provided by the Keycloak server*. 


Signed-off-by: David Festal <dfestal@redhat.com>
2018-10-10 20:52:35 +02:00
Sergii Leshchenko a11bd54bbc Make Workspace Loader listen to runtime log instead of machine log 2018-10-04 21:12:36 +03:00
Oleksii Kurinnyi 960c390b66
CHE-10687: fix log message, add check for runtime in running workspace (#10734)
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-08-10 16:10:02 +03:00
Oleksii Kurinnyi 8bf02a9f5d
CHE-10540: stop workspace loading progress on websocket error (#10688)
* code clean-up

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* CHE-10540: stop workspace loading progress on websocket error

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-10540: stop workspace loading progress on websocket error
2018-08-08 13:10:03 +03:00
Oleksii Kurinnyi b03be67f04
CHE-10538: improves workspace loader (#10642)
* CHE-10538: update workspace loading flow

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* update licenses

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-10538: update workspace loading flow
2018-08-07 13:18:10 +03:00
Mykhailo Kuznietsov 07263f1e30
Fix license header text (#10629) 2018-08-02 11:18:04 +03:00
Oleksii Kurinnyi 0e49d6c2b3
CHE-10365: Add websocket reconnection feature to workspace loader app (#10533)
* CHE-10365: Add websocket reconnection feature to workspace loader app

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-10365: Add websocket reconnection feature to workspace loader app
2018-07-31 14:49:33 +03:00
Mykhailo Kuznietsov 15d23edc91
Update license to EPL 2.0 (#10531) 2018-07-31 11:24:36 +03:00
Anna Shumilova 2f7a5a4ed1
Change the loading flow by always wait the runtime before open IDE (#10263)
* Change the loading flow by always wait the runtime before open IDE and add error handling

Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-07-09 11:57:24 +03:00
Sun Tan fe6bc263f6 Fix workspace loader which should pass its query strings to the underlying alternate IDE
Signed-off-by: Sun Tan <sutan@redhat.com>
2018-04-12 11:40:24 +02:00
David Festal ff3459d2d3
Support alternate OIDC providers, to prepare for the switch from Keycloak to `fabric8_auth` (#8650)
Allow switching to an alternate OIDC provider (provided that it emits access tokens as JWT tokens).

This is the implementation required in upstream Che, for issues
redhat-developer/rh-che#502 and
redhat-developer/rh-che#525

Signed-off-by: David Festal <dfestal@redhat.com>
2018-03-23 14:44:23 +01:00
Vitaliy Guliy 8f041d8db6
Unable to open Theia IDE (#9073)
* Fix hanging the browser when too much console outputs

* Fix hanging the browser
2018-03-13 16:01:49 +02:00
Oleksii Kurinnyi 16a8419a90
CHE-9024: fix ability to start a workspace from Dashboard (#9034)
* CHE-9024: fix ability to start a workspace from Dashboard

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-9024: fix ability to start a workspace from Dashboard
2018-03-07 11:01:34 +02:00
Vitaliy Guliy 3da13d54b5 Workspace loader (#8838)
Adding workspace loader application.
2018-03-05 14:04:49 +02:00