Install these 3 components to have a complete integration of managed SSO applications in Porta.
-
Install Porta
Follow the installation guide. -
Install Zync
Follow the installation guide. -
Install Keycloak
Run Keycloak locally.docker run --name keycloak -d -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=p jboss/keycloak
Then configure Red Hat Single Sign-On.
-
Run Zync
Go to the folder where you have zync installed and run it in the port 5000.ZYNC_AUTHENTICATION_TOKEN=zynctoken bundle exec rails server -p 5000
-
Run Porta
These configurations are needed:
- In
config/rolling_updates.yml
, make sure to haveapicast_v2: true
andapicast_oidc: true
.
Run porta.
UNICORN_WORKERS=8 ZYNC_ENDPOINT=http://localhost:5000 ZYNC_AUTHENTICATION_TOKEN=zynctoken bundle exec rails server -b 0.0.0.0
-
Run Porta's sidekiq
Run Porta's Sidekiq to process Zync Worker jobs from thezync
queue.ZYNC_ENDPOINT=http://localhost:5000 ZYNC_AUTHENTICATION_TOKEN=zynctoken bundle exec sidekiq -q zync
-
Configure 3scale to use Keycloak
Follow the documentation to configure 3scale.
The url must not contain 'locahost', but it is possible to use insteadkeycloak.lvh.me:8080
Example of the whole url:http://threescale:[email protected]:8080/auth/realms/3scale