Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19835

[GSS](7.2.z) WFCORE-4976 - Where ModelControllerClient is initialised in process with CBH AuthenticationConfiguration takes priority.

    Details

      Description

      In ProtocolConnectionUtils we have the following code to pass in the provided CallbackHanldler: -

              if (handler != null) {
                  mergedConfiguration = mergedConfiguration.useCallbackHandler(handler, DEFAULT_CALLBACK_KINDS);
              }
      

      However the AuthenticationClient performs the following sanitation of the specified KINDS: -

                  case SET_USER_CB_KINDS:
                      // SANITAZE on above content
                      if (this.principal != null) {
                          sanitazeOnMutation(SET_PRINCIPAL);
                      }
      
                      if (this.credentialSource != null) {
                          sanitazeOnMutation(SET_CRED_SOURCE);
                      }
      
                      if (this.setRealm != null) {
                          sanitazeOnMutation(SET_REALM);
                      }
      
                      if (this.parameterSpecs != null) {
                          sanitazeOnMutation(SET_PARAM_SPECS);
                      }
      
                      if (this.keyManagerFactory != null) {
                          sanitazeOnMutation(SET_KEY_MGR_FAC);
                      }
                      break;
      

      Before passing in the CallbackHandler and specifying which KINDS is applies to the ProtocolConnectionUtils call should first remove the duplicates from the configuration.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rhn-support-rmartinc Ricardo Martin Camarero
                  Reporter:
                  ivassile Ilia Vassilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: