Guide for Running app-builder locally with app-engine and keycloak authentication server
git clone https://github.com/entando/entando-keycloak.gitcd entando-keycloakdocker-compose up --build keycloakordocker compose up --build -keycloak
git clone https://github.com/entando/entando-keycloak-plugin.git- Navigate to: http://localhost:8081/auth and log into keycloak admin console
- id/pass:
admin/qwe123 - Top left corner click: Add Realm
- Click import json file. Choose a file from cloned
entando-keycloak-plugin/keycloak/realm-export.jsonNow you have 2 clients that you will be using: 1)entando-coreand 2)entando-web
- Go to
Clients/entando-coreand make changes as described below: - Put
*in valid redirect URIs. - Put
*in web origin. - Do the same for
Clients/entando-web - Also, make
entando-webclientpublic. - Now go to
Clients/entando-coreagain, and go to a tab calledService Accounts... - You should choose a client
realm-managementfrom dropdown and assignrealm-adminto the right. - Also, choose
entando-corein dropdown and assignsuperuserto the right. - Now restart the keycloak server.
- Go to
Usersand add a new user calledadminthat you will be using duringapp-builderlogin. - In
Users/admingo to theCredentialstab and add a password for theadminuser
- Clone: https://github.com/entando/app-engine.git
- see the README.md for the installation.
- Open
pom.xmlfile insidewebappfolder and find<!-- Keycloak Configuration -->, then update the following values:
<keycloak.enabled>true</keycloak.enabled>
<keycloak.auth.url>http://localhost:8081/auth</keycloak.auth.url>
<keycloak.realm>entando-development</keycloak.realm>
<keycloak.client.id>entando-core</keycloak.client.id>
<keycloak.client.secret>YOUR SECRET HERE from KEYCLOAK</keycloak.client.secret>
As for secret you need to go to keycloak , then go to Clients/entando-core and click Credentials tab, there you will see a secret and put that secret into pom.xml . As for other lines, you can keep them same as in the snippet above.
- Now run entando-de-app via running:
mvn clean package jetty:run-war -Pjetty-local -Pderby -Pkeycloak
- git clone https://github.com/entando/app-builder.git
- You must have node version
14.* - Run:
npm install - Create a file
.env.local - Put these lines into that file:
USE_MOCKS=false
USE_MFE=false
USE_REMOTE_MFE=false
USE_LOCAL_MFE=false
USE_MFE_MOCKS=false
CI=false
KEYCLOAK_ENABLED=true
DOMAIN=http://localhost:8080/entando-de-app
PUBLIC_URL=/app-builder
npm start- Navigate to:
localhost:3000and try to log in with user you created in the last step ofConfigure clients