Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.78 KB

INTEGRATE.md

File metadata and controls

35 lines (25 loc) · 1.78 KB

Local integration between Porta/System with Keycloak through Zync

Install these 3 components to have a complete integration of managed SSO applications in Porta.

  1. Install Porta
    Follow the installation guide.

  2. Install Zync
    Follow the installation guide.

  3. 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.

  1. 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

  2. Run Porta

These configurations are needed:

  • In config/rolling_updates.yml, make sure to have apicast_v2: true and apicast_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

  1. Run Porta's sidekiq
    Run Porta's Sidekiq to process Zync Worker jobs from the zync queue. ZYNC_ENDPOINT=http://localhost:5000 ZYNC_AUTHENTICATION_TOKEN=zynctoken bundle exec sidekiq -q zync

  2. Configure 3scale to use Keycloak
    Follow the documentation to configure 3scale.
    The url must not contain 'locahost', but it is possible to use instead keycloak.lvh.me:8080
    Example of the whole url: http://threescale:[email protected]:8080/auth/realms/3scale