Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51549

Infinite Loop - Keycloak Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • keycloak-plugin

      -> Keycloak realm ci client jenkins configuration

      -> Jenkins Keycloak Plugin configuration


      -> Keycloak  installation Json 

      {
      "realm": "ci",
      "auth-server-url": "https://localhost/auth",
      "ssl-required": "external",
      "resource": "jenkins",
      "credentials": {
      "secret": "c1db281a-005c-4dce-9299-665af794bbb9"
      },
      "confidential-port": 0
      }

      Secrets are not a problem this is a local testing with non sensitive info

      The Problem

      When connecting to https://localhost/jenkins  I get redirected to keycloak, where I initiate login with Keycloak with a previously created user.

      Resulting in the following sequence of events. ( Logged in at Keycloak redirected to /jenkins and so on)

       

      Example of request for the 403 seen above.

      Values at the /whoAmI endpoint


      Note: I could be messing something up and its not a bug, but rather some configuration that I'm not following correctly. Also get some errors if using openid-connect plugin, but won't loop, nor authenticate, which suggest it can be on my end)

       

            devlauer D. Lauer
            ilhicas André Ilhicas Santos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: