This project provides a Dockerfile that automatically adds a realm configured to add an external identity provider (IDP).
This IDP uses https://irma-auth.sns.gidsopenstandaarden.org, which provides an OIDC wrapper around the Yivi
(previously IRMA) logic. This allows for an eased integration that support identity provider federation.
- Build a docker image named
gids-idp-yivi:docker build -t gids-idp-yivi . --rm - Run the image. In the command below, replace the
<CLIENT_ID>and<CLIENT_SECRET>with values from https://irma-auth.sns.gidsopenstandaarden.org/oauth2/token:Keep in mind that you can also change the way Keycloak is started, for example:docker run -p 8080:8080 gids-idp-yivi -e CLIENT_ID=<CLIENT_ID> -e CLIENT_SECRET=<CLIENT_SECRET>
docker run -p 8080:8080 gids-idp-yivi -e CLIENT_ID=<CLIENT_ID> -e CLIENT_SECRET=<CLIENT_SECRET> -e KEYCLOAK_STARTUP_ARGUMENTS="start-dev --debug"
When the container is running, the following is prepared:
- The username/password
keycloak/keycloakcan be used to login to the admin console - A realm named
yiviis being imported. This realm has a federated identity provider configured. - Users can login via yivi or create a new account in the idp