Import realm ERAS to keycloak server - JU-DEV-Bootcamps/ERAS GitHub Wiki

JSON Realm configuration:

realm-export.json

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':

image

image

And select the realm json file provided here.

image

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:

image

And do a pratial import from the action menu on the right:

image

Select the file provided here and overwrite the current configurations:

Screenshot 2025-01-23 091901

A detailed summary will be displayed and you are done. Screenshot 2025-01-23 091917

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: image

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. Screenshot 2025-01-31 172808

This should enable Google as an authentication and register method for ERAS application.