Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2373

Elytron DIGEST misconfiguration not handled

XMLWordPrintable

      1. ./standalone.sh -c standalone-elytron.xml
      2. deploy secured-webapp.war
      3. access localhost:8080/secured-webapp/index.jsp
      4. User can't get in and keep getting 401 http status code

      When realm name from web.xml and server configuration differs, user is not informed about that fact.

      Could misconfiguration be handled by failing during application deployment as application requirement could not be satisfied?

      web.xml
        <login-config>
            <auth-method>DIGEST</auth-method>
            <realm-name>Secured kingdom</realm-name>
        </login-config>
      
      standalone-elytron.xml
      <http-authentication-factory name="application-http-authentication" http-server-mechanism-factory="global" security-domain="ApplicationDomain">
          <mechanism-configuration>
              <mechanism mechanism-name="DIGEST">
                  <mechanism-realm realm-name="ApplicationRealm"/>
              </mechanism>
          </mechanism-configuration>
      </http-authentication-factory>
      
      server.log
      17:06:18,278 TRACE [org.wildfly.security] (default task-1) Handling MechanismInformationCallback
      17:06:18,282 TRACE [org.wildfly.security] (default task-1) New nonce generated AAAAAQAAGoxim7G7FMLLnVddA7s69JDh5sRsiZ5aEDhg7qf+dB2Rjs7xwrg=, using seed Secured kingdom
      17:06:22,308 TRACE [org.wildfly.security] (default task-2) Handling MechanismInformationCallback
      17:06:22,311 TRACE [org.wildfly.security] (default task-2) Handling AvailableRealmsCallback: realms = [Application Realm]
      17:06:22,312 TRACE [org.wildfly.security] (default task-2) Handling AvailableRealmsCallback: realms = [Application Realm]
      17:06:22,312 TRACE [org.wildfly.security] (default task-2) Handling RealmCallback: selected = [Secured kingdom]
      17:06:22,314 TRACE [org.wildfly.security] (default task-2) New nonce generated AAAAAgAAGo1TCzTJDpmA8HsI2fS4ZfJ60KbECZU6edCP9UepmGnyV93iP6c=, using seed Secured kingdom
      

              Unassigned Unassigned
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: