Closed AlesCUMSI closed 3 weeks ago
Hi @AlesCUMSI, thanks for opening this issue.
In the recent PR I have made, I have addressed this with step 1 suggested.
File now will look for the .env REALM variable: configData.KEYCLOAK_URL + '/auth/realms/' + process.env.REACT_APP_KEYCLOAK_CLIENT_REALM + '/protocol/openid-connect/token',
For step 2, I have it pending to update to the last version of Keycloak but first I have to test everything is working with the new version.
Thank you very much,
Oriol
Description:
In file AuthContext.js, the hardcoded string for the Keycloak realm Beacon should be replaced with an environment variable. Specifically, replace the string Beacon with ${process.env.REACT_APP_KEYCLOAK_CLIENT_REALM} to allow for better configurability.
Steps to Address:
Update AuthContext.js:
(Optional) Consider updating the Keycloak service to a newer version.