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 #174

Closed Vismayak closed 3 months ago

Vismayak commented 7 months ago

Reason - Enables us to use keycloak APIs to login with 3rd parties Sources - Farmdoc and Clowder also does this, look for it there Useful note - https://refactored-carnival-0c1ec87e.pages.github.io/keycloak.html https://onelinerhub.com/reactjs/how-can-i-implement-keycloak-authentication-with-react-js

Vismayak commented 7 months ago

Look for keycloak admin login in the values file of box folder

Vismayak commented 7 months ago

Update - I have almost figured out how to connect the keycloak js adapter, the issue right now is I initialized it in the wrong place, , right now I created in the actions for reducers. I will instead move the variable to config, then handle the login logic inside the login component similar to farmdoc. Logout handling compnent is created.

One thing to look out for will be the redirect uri, depending on the place that called the login, this can be handled probably in the component