- Install Client Json
-
This command will connect to your Keycloak instance and write the necessary WEB-INF/keycloak.json to enable keycloak. IMPORTANT: You need to make sure that the Direct Access Grants Enabled option is enabled for this client
keycloak-install-client-json --server-url http://localhost:9000/auth --realm master --client-id security-admin-console --user admin --password admin
Tip
|
If you want to configure web.xml, run the following commands, replacing the values as needed: |
security-add-login-config --auth-method KEYCLOAK --security-realm master
security-add-constraint --web-resource-name Customer --url-patterns /rest/customers --security-roles user