Authentication - activoricordi/nijinsky GitHub Wiki

All the platform authentication is managed using the RedHat JBoss Keycloak.

Keycloak Authentication Server

Keycloak is an open source Identity and Access Management solution aimed at modern applications and services. It makes it easy to secure applications and services with little to no code.

This file stores the environment values .env This file stores the SSO value config/keycloak/apicurio-realm.json. The configuration is identify by a Keycloak realm to use for authentication. This file stores the SSO realm configuration values for microcks config/keycloak/microcks-realm.json.

The Keycloak instance is already configured, it is not necessary to add anything. There are no default users added to Keycloak, so it is necessary to navigate to: http://YOUR_IP:8090. The default credentials for Keycloak are: admin and the password can be found in the generated .env file, under KEYCLOAK_PASSWORD.

APICURIO_KC_AUTH_URL

keycloak:
    image: jboss/keycloak:10.0.1
    container_name: microcks-sso
    ports:
      - "18080:8080"
    environment:
      KEYCLOAK_USER: "admin"
      KEYCLOAK_PASSWORD: "admin"
      KEYCLOAK_IMPORT: "/tmp/microcks-realm.json"
      KEYCLOAK_FRONTEND_URL: "http://docker.for.mac.localhost:18080/auth"
    volumes: 
      - "./keycloak-realm/microcks-realm-sample.json:/tmp/microcks-realm.json"

References