IN-CORE / incore-ui

IN-CORE Web Tools: a component of IN-CORE. It consists of data viewer, hazard viewer, and fragility viewer.
https://incore.ncsa.illinois.edu
Mozilla Public License 2.0
4 stars 0 forks source link

Moving login to use keycloak login page #181

Closed Vismayak closed 3 months ago

Rashmil-1999 commented 3 months ago

This PR is ready to be reviewed. To test it, there are 3 options: I suggest use tst or dev

  1. Test locally, for this you need to have docker installed. Go to keycloak setup folder and run docker-compose up -d make sure port 8080 is free. Then in asset.config.js file set URL to http://localhost:8080/auth/ under keycloakConfig. Then you can run npm run start. For the first time, you might have to go to keycloak on port 8080 to set the theme and redirect URLs in react_auth client.
  2. Do nothing, just run npm run start:tst to connect to tst cluster. Note that there is no data and some components would not work fine. but the Login and logout should.
  3. Run the usual npm run start:dev to connect to dev cluster. Everything should be as is on https://incore-dev.ncsa.illinois.edu/ but the login page should have changed. Note that YWK is working on getting the theme on dev so you might see the old green theme. Just Ctrl/CMD + Shift + r to hard reload to pull new themes when they get added.

I suggest try option 2 and 3 ....1 only if you want to understand exactly what did we change on keycloak settings page.

Rashmil-1999 commented 3 months ago

Ohh okay...

ywkim312 commented 3 months ago

@Rashmil-1999 I am very sorry to request that would you be able to update this PR by merging with the latest develop? So we can deploy this PR with google anlaytics in dev cluster?

Rashmil-1999 commented 3 months ago

yes, let me do that...