It allows the configuration of a keycloak instance with the https://github.com/lscorcia/keycloak-spid-provider plugin already installed
- node
- npm
npm install
copy .env-example into .env, configure it and wipe out the comments
npm run create-realm
builds a pre configured realm (with the right Authenticator)
npm run create-idps
downloads the metadata from the Official Url and build all the spid identity providers in keycloak. It creates also all the suggested mappers (see the main wiki).
If you have a spid test idP (https://github.com/italia/spid-testenv2) deployed somewhere, you can enable the configuration of the keycloak identity provider, setting the following .env file properties
createSpidTestIdP = true
spidTestIdPAlias = spid-testenv2
spidTestIdPMetadataURL = http://localhost:8088/metadata
You can use the same properties to configure the Official Spid Validator https://github.com/italia/spid-saml-check
The attributeConsumingServiceIndex attribute of the Keycloak IdP configuration is incremented automatically but it's better dublecheck it
This project is released under the Apache License 2.0, same as the main Keycloak package.