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
- Host: GitHub
- URL: https://github.com/forge/keycloak-addon
- Owner: forge
- Created: 2016-02-08T11:54:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-05T12:56:22.000Z (over 9 years ago)
- Last Synced: 2025-03-14T15:14:59.523Z (12 months ago)
- Language: Java
- Homepage: http://keycloak.jboss.org/
- Size: 9.77 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.asciidoc
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
----