SwissDataScienceCenter / renku-gateway

Gateway between the renku UI and the various renku backend services
https://renkulab.io
Apache License 2.0
6 stars 3 forks source link

Logout/profile [SV deployment]: 404 Page not found #172

Open pameladelgado opened 5 years ago

pameladelgado commented 5 years ago

Description Logout and profile in SV deployment result in: 404 Page not found

To Reproduce Steps to reproduce the behaviour:

  1. Go to https://sv-renku.epfl.ch/
  2. Login with an EPFL gaspar account
  3. Logout (top right menu)
  4. See error in screenshot: Error 404 Page not found. URL on browser is https://sv-renku.epfl.ch/auth/realms/Renku/protocol/openid-connect/logout?redirect_uri=https://sv-renku-git.epfl.ch

3a. Click on profile (top right menu) 4a. Error is the same as when logout URL on browser is https://**sv-renku.epfl.ch**/auth/realms/Renku/account?referrer=renku-ui

Expected behavior When logout it should redirect to SV Renku home page

When clicking profile the URL should be: https://**sv-auth.epfl.ch**/auth/realms/Renku/account?referrer=renku-ui

Screenshots image002

Additional information Particularity of this deployment: SV has a sepparated gitlab instance https://sv-renku-git.epfl.ch/ Gateway-auth variables: KEYCLOAK_URL https://sv-auth.epfl.ch

This could be related to lack of subdomain support for the gateway.

pameladelgado commented 5 years ago

Update after Buhler update

  1. Profile is incorrect as well for Buhler: URL https://**renku**.buhler-datascience.ch/auth/realms/Renku/account?referrer=renku-ui Expected URL https://**keycloak**.buhler-datascience.ch/auth/realms/Renku/account?referrer=renku-ui

I think that this will require the code to be changed. I verified before the upgrade and Profile was using the correct URL.

  1. Logout: SV I fixed the SV redirect in After sign out path setting in the gitlab admin console: Old -incorrect-URL https://sv-renku.epfl.ch/auth/realms/Renku/protocol/openid-connect/logout?redirect_uri=https://sv-renku-git.epfl.ch New -correct- URL https://sv-auth.epfl.ch/auth/realms/Renku/protocol/openid-connect/logout?redirect_uri=https://sv-renku.epfl.ch Buhler In this case we can't setup such a redirect after sign out because Their gitlab instance is used not just for Renku, therefore one gets redirected to the initial gitlab login page. Related: https://github.com/SwissDataScienceCenter/renku-gateway/issues/76