7 Replies Latest reply on Jun 19, 2018 10:55 AM by Lilly rose

    Can't able to install keycloak  adapters on wildfly  server

    Lilly rose Novice

      Hello

      We have wildfly 11.0.0.0 final .

      We copied keycloak-wildfly-adapter-dist-4.0.0.Final.zip under Wildfly_Home path
      Unizipped that file.
      I even created the file layers.conf under the folder Wildfly_Home/Modules

      Trying to run the command to install the keycloak adapter on wildfly but its throwing the below error , what needs to be done for this any idea ?

      nl0000:/srv/prop/wildfly/11/bin> ./jboss-cli.sh --file=adapter-elytron-install.cli --connect --controller=0.0.0.0:xxxx
      Authenticating against security realm: ManagementRealm
      Username: xxxx
      Password:
      {
      "outcome" => "failed",
      "failure-description" => "WFLYCTL0310: Extension module org.keycloak.keycloak-adapter-subsystem not found",
      "rolled-back" => true
      "response-headers" =>

      {"process-state" => "reload-required" }

      }

      Can't we install this manullay instead of using Jboss-cli or how can we resolve the above error

        • 1. Re: Can't able to install keycloak  adapters on wildfly  server
          Cassius Vinicius Newbie

          Hello,

           

          You're using the install for wildfly running.

           

          You should use the keycloak adapter offline install.

           

          Regards.

          • 2. Re: Can't able to install keycloak  adapters on wildfly  server
            Lilly rose Novice

            I used that commans because my wildfly is running .

             

            I  stopped wildfly and ran that offline command . But I see  the same error

            • 3. Re: Can't able to install keycloak  adapters on wildfly  server
              Cassius Vinicius Newbie

              Hello,

               

              Describe your architecture, please. So, we are able to understand what you are trying to achieve.

               

              I am running a simple standalone configuration so it was easy to install the keycloak offline installer.

              • 4. Re: Can't able to install keycloak  adapters on wildfly  server
                Lilly rose Novice

                We have 1 wildfly server  and it has  three standalone  instances .

                 

                 

                Anything  I have to mention ?

                • 5. Re: Can't able to install keycloak  adapters on wildfly  server
                  Lilly rose Novice

                  We are  actually  configuring  Keycloak , OKTA  wildfly , application on wildfly for single sign on 

                  • 6. Re: Can't able to install keycloak  adapters on wildfly  server
                    Claudio Miranda Expert

                    Are the keycloak adapter binaries located as in this example ?

                     

                    The prompt is locate in the bin directory

                     

                    find ../modules/system/add-ons/keycloak/org/keycloak/ -type d

                    ../modules/system/add-ons/keycloak/org/keycloak/

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-subsystem

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-subsystem/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-common

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-common/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-elytron-oidc-adapter

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-elytron-oidc-adapter/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-core

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-core/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-spi

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-spi/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-authz-client

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-authz-client/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-jboss-adapter-core

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-jboss-adapter-core/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-adapter

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-adapter/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-undertow-adapter

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-undertow-adapter/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-core

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-core/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-subsystem

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-subsystem/main

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-servlet-oauth-client

                    ../modules/system/add-ons/keycloak/org/keycloak/keycloak-servlet-oauth-client/main

                     

                    I didn't need to create the layers.conf file

                    • 7. Re: Can't able to install keycloak  adapters on wildfly  server
                      Lilly rose Novice

                      I see  like below

                       

                      find ../modules/system/add-ons/keycloak/org/keycloak/ -type d

                      ../modules/system/add-ons/keycloak/org/keycloak/

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-common

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-common/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-elytron-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-elytron-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-subsystem

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-subsystem/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-wildfly-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-spi

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-spi/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-subsystem

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-subsystem/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-core

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-core/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-jboss-adapter-core

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-jboss-adapter-core/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-core

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-core/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-core-public

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-core-public/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-undertow-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-undertow-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-api-public

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-saml-adapter-api-public/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-subsystem

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-subsystem/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-authz-client

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-authz-client/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-servlet-oauth-client

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-servlet-oauth-client/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-subsystem

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-subsystem/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-elytron-oidc-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-elytron-oidc-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-undertow-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-undertow-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-core

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-adapter-core/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-adapter

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-wildfly-adapter/main

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-core

                      ../modules/system/add-ons/keycloak/org/keycloak/keycloak-core/main