Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1203

Elytron AuthenticationConfiguration uses SASL mechanism from incorrect security Provider in some cases

XMLWordPrintable

      In our tests for PLAIN SASL mechanism in the AS testsuite we realized a wrong SaslClient implementation is used. Instead of the Elytron one, the JDK provided one is used (com.sun.security.sasl.PlainClient).

      The Elytron client builds the AuthenticationContext and runs executed code in this way:

      AuthenticationConfiguration authnCfg = AuthenticationConfiguration.EMPTY.allowSaslMechanisms(MECHANISM_PLAIN)
              .useName(USERNAME).usePassword("wrongPassword")
              .useDefaultProviders();
      AuthenticationContext.empty().with(MatchRule.ALL, authnCfg).run(...)
      

      It seems to be related to what's included on classpath. When we use the same code in elytron-client-demo the correct mechanism is used.

            darran.lofthouse@redhat.com Darran Lofthouse
            josef.cacek@gmail.com Josef Cacek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: