An open API service indexing awesome lists of open source software.

https://github.com/forge/keycloak-addon

Keycloak Forge addon
https://github.com/forge/keycloak-addon

Last synced: 8 months ago
JSON representation

Keycloak Forge addon

Awesome Lists containing this project

README

          

== Keycloak Add-on for JBoss Forge
image:https://travis-ci.org/forge/keycloak-addon.svg?branch=master["Build Status", link="https://travis-ci.org/forge/keycloak-addon"]
image:http://img.shields.io/:license-EPL-blue.svg["License", link="https://www.eclipse.org/legal/epl-v10.html"]

:idprefix: id_
This addon provides *standalone* functionality.

=== Installation

From Forge CLI:

[source,shell]
----
addon-install-from-git --url https://github.com/forge/keycloak-addon.git
----

=== Depends on
[options="header"]
|===
|Addon |Exported |Optional

|ui
|yes
|no

|projects
|yes
|no

|rest-client
|yes
|no
|===

== Features
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

[source,shell]
----
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:

[source,shell]
----
security-add-login-config --auth-method KEYCLOAK --security-realm master
security-add-constraint --web-resource-name Customer --url-patterns /rest/customers --security-roles user
----