Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2911

Cannot clone project by ssh when business central is integrated with Keycloak

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.63.0.Final
    • 7.59.0.Final
    • General workbench
    • None
      1. Integrate Business central with Keycloak
      2. Create space aaa.
      3. Create project bbb.
      4. Clone git clone ssh://userName@localhost:8001/aaa/bbb
      5. Credentials are not accepted, project is not cloned.
    • NEW
    • NEW

      Credentials are not accepted for cloning a project by ssh when bc is integrated with Keycloak.
      It looks like a configuration issue of Elytron changes.

      In the previous versions there were these steps:

      /subsystem=security/security-domain=other/authentication=classic:remove
      /subsystem=security/security-domain=other/authentication=classic:add
      /subsystem=security/security-domain=other/authentication=classic/login-module=git-login-module:add(code="org.keycloak.adapters.jaas.DirectAccessGrantsLoginModule",flag="required",module-options={"keycloak-config-file"=>"${kie_git_config.json"})
      

      where kie_git_config.json contains:

      {
        "realm": "demo",
        "realm-public-key": "some-key",
        "auth-server-url": "http://url-to_keycloak:8075/auth",
        "ssl-required": "external",
        "resource": "kie-git",
        "credentials": {
          "secret": "password"
        }
      }
      

              rh-ee-pefernan Pere Fernandez Perez
              tdavid@redhat.com Tomas David
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: