git clone https://github.com/b1-systems/example-public.git
cd example-public
sudo mkdir /var/www/example-public
sudo cp \
index.css \
index.html \
index.js \
jquery.*.js \
require.js \
silent-check-sso.html \
/var/www/example-public
- Create public client application "example-public" in Keycloak.
- Set Capabilty config -> Client authentication to Off
- Set Valid Redirect URIs to a wildcard below the publicly accessible URL of your installation of "example-public", for example https://www.example.test/example-public/*
- In Keycloak, in client "example-public", ckick Action (upper right corner) -> Download client configuration in format "Keycloak JSON".
- Copy
keycloak.json
to/var/www/example-public
. - Create configuration file
example-public.json
as shown in example below:example_public_url
: Public URL ofexample-public
. Should correspond to your setting of "Valid Redirect URIs" in step 1.keycloak_url
: URL of Keycloak, normally identical to the value ofauth-server-url
inkeycloak.json
.
{ "example_public_url": "https://www.example.test/example-public",
"keycloak_url": "https://www.example.test/keycloak"}
- Copyright: 2022 B1 Systems GmbH [email protected]
- Author: Tilman Kranz [email protected]
- License: MIT License https://opensource.org/licenses/MIT