upgrading_keycloak
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| upgrading_keycloak [2017/02/01 18:25] – [2.2 Create a DB] kalaschnikow | upgrading_keycloak [2018/04/23 15:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Upgrading Keycloak ====== | ||
| + | ===== 1. Export realm from existing installation ===== | ||
| + | |||
| + | Start your existing (" | ||
| + | <code bash> | ||
| + | bin/ | ||
| + | </ | ||
| + | |||
| + | See also [[https:// | ||
| + | |||
| + | ===== 2. Install new Keycloak ===== | ||
| + | ==== 2.1 Download and unzip ==== | ||
| + | |||
| + | http:// | ||
| + | |||
| + | Note: Downloads don't work in Opera (strange...) - | ||
| + | browser crashes. So it will be better to use Firefox. | ||
| + | |||
| + | ==== 2.2 Create a DB ==== | ||
| + | It is not recommended to use the built-in H2 database, so we should create a MySQL database for keycloak. | ||
| + | |||
| + | Start mysql | ||
| + | <code bash> | ||
| + | # mysql -u root | ||
| + | </ | ||
| + | |||
| + | Then create the DB: | ||
| + | <code sql> | ||
| + | create database keycloak2_5_1; | ||
| + | </ | ||
| + | Then copy the MySQL module to the keycloak. It should be in the directory: | ||
| + | '' | ||
| + | |||
| + | You can also create this module manually. Here is the [[https:// | ||
| + | |||
| + | After that edit standalone.xml and add to it the follwing lines: | ||
| + | <code xml> | ||
| + | < | ||
| + | < | ||
| + | <!-- ... --> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | <!-- ... --> | ||
| + | < | ||
| + | <!-- ... --> | ||
| + | <driver name=" | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== 2.3 Create realm and import data==== | ||
| + | |||
| + | Start your new Keycloak. Create a new realm. Change into it. Import JSON file. Keycloak should import all users and roles. On " | ||
| + | |||
| + | ==== 2.4 Create clients ==== | ||
| + | === 2.4.1 avril-web === | ||
| + | Create client ' | ||
| + | |||
| + | === 2.4.2 avril-backend === | ||
| + | Create client ' | ||
| + | |||
| + | === 2.4.3 avril-third-party === | ||
| + | Create client ' | ||
| + | < | ||
| + | |||
| + | Direct Access Grant Enabled - Off (?). | ||
| + | On " | ||
| + | |||
| + | ===== Misc ===== | ||
| + | |||
| + | User '' | ||
