Import realm ERAS to keycloak server - JU-DEV-Bootcamps/ERAS GitHub Wiki
JSON Realm configuration:
Import steps
In order to configure keycloak server with all the secrets, identity providers and clients Keycloak has an import feature to make this process seamless.
All you need to do is create a REALM with the name 'ERAS':
And select the realm json file provided here.
In the case you already have the REALM created and want to update or go back to the initial configuration (only an admin and a general client with their respective roles). You can go to the REALM settings in the left menu:
And do a pratial import from the action menu on the right:
Select the file provided here and overwrite the current configurations:
A detailed summary will be displayed and you are done.
Update Google secret from console to enable Google auth provider
As the import settings is a plain JSON. The secret encryption does not allow to retain the secret. you need to manually update it once your server with the ERAS realm created and configured with the JSON import.
To do this go to the Google console and from APIs & Services retrieve the Keycloak service secret:
Then, go to your keycloak server, enter the ERAS realm and click on "Identity Providers" on the bottom left menu. Select "google" provider and add the secret.
This should enable Google as an authentication and register method for ERAS application.