2015-04-14 07:27:51 +00:00
|
|
|
Keycloak
|
2013-07-02 13:38:51 +00:00
|
|
|
========
|
|
|
|
|
2015-04-14 07:27:51 +00:00
|
|
|
Keycloak is an SSO Service for web apps and REST services. For more information visit [http://keycloak.org](http://keycloak.org).
|
|
|
|
|
|
|
|
|
|
|
|
Building
|
|
|
|
--------
|
|
|
|
|
2015-04-14 08:30:58 +00:00
|
|
|
Ensure you have JDK 7 (or newer), Maven 3.2.1 (or newer) and Git installed
|
2015-04-14 07:27:51 +00:00
|
|
|
|
|
|
|
java -version
|
|
|
|
mvn -version
|
2015-04-14 08:30:58 +00:00
|
|
|
git --version
|
|
|
|
|
|
|
|
First clone the Keycloak repository:
|
|
|
|
|
|
|
|
git clone https://github.com/keycloak/keycloak.git
|
|
|
|
cd keycloak
|
2015-04-14 07:27:51 +00:00
|
|
|
|
|
|
|
To build Keycloak run:
|
|
|
|
|
|
|
|
mvn install
|
|
|
|
|
|
|
|
This will build all modules and run the testsuite.
|
|
|
|
|
|
|
|
To build the distribution run:
|
|
|
|
|
|
|
|
mvn install -Pdistribution
|
|
|
|
|
|
|
|
Once completed you will find distribution archives in `distribution`.
|
|
|
|
|
|
|
|
|
|
|
|
Starting Keycloak
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
To start Keycloak during development first build as specficied above, then run:
|
|
|
|
|
|
|
|
mvn -f testsuite/integration/pom.xml exec:java -Pkeycloak-server
|
|
|
|
|
|
|
|
|
|
|
|
To start Keycloak from the appliance distribution first build the distribution it as specified above, then run:
|
|
|
|
|
|
|
|
tar xfz distribution/appliance-dist/target/keycloak-appliance-dist-all-<VERSION>.tar.gz
|
|
|
|
cd keycloak-appliance-dist-all-<VERSION>/keycloak
|
|
|
|
bin/standalone.sh
|
|
|
|
|
|
|
|
To stop the server press `Ctrl + C`.
|
|
|
|
|
|
|
|
|
|
|
|
Contributing
|
|
|
|
------------
|
|
|
|
|
2015-04-14 08:30:58 +00:00
|
|
|
* [Hacking on Keycloak](misc/HackingOnKeycloak.md)
|
2015-04-14 07:27:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
* [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|