Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4298

DatabaseServerLoginModule doesn't support SHA-512 with Java 8

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 11.0.0.Alpha1
    • 8.2.0.Final
    • Security
    • None
    • Win 7, x64

      java version "1.8.0_20"
      Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

      I tried to use the following security domain configuration:

      <security-domain name="secureDomain" cache-type="default">
      <authentication>
      <login-module code="Database" flag="required">
      <module-option name="dsJndiName" value="java:jboss/datsources/MySQLTestDS"/>
      <module-option name="principalsQuery" value="SELECT password FROM user WHERE email=?"/>
      <module-option name="rolesQuery" value="select role, 'Roles' from role where email=?"/>
      <module-option name="hashAlgorithm" value="SHA-512"/>
      <module-option name="hashEncoding" value="base64"/>
      </login-module>
      </authentication>
      </security-domain>

      And never got a user successfully authenticated. Works with hashAlgorithm SHA-256

              darran.lofthouse@redhat.com Darran Lofthouse
              meisele@redhat.com Markus Eisele (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: