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

Support hex encoding in jdbc-realm for elytron

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.4.0.Final
    • 1.3.2.Final
    • Realms

    Description

      Old database login-module can be configured passing the attribute hashEncoding, for example:

      <login-module code="Database" flag="required">
          <module-option name="dsJndiName" value="java:jboss/datasources/ExampleDS"/>
          <module-option name="principalsQuery" value="SELECT password FROM User WHERE username = ?"/>
          <module-option name="rolesQuery" value="SELECT role, 'Roles' FROM User WHERE username = ?"/>
          <module-option name="hashAlgorithm" value="SHA-1"/>
          <module-option name="hashEncoding" value="hex"/>
          <module-option name="hashCharset" value="UTF-8"/>
      </login-module>
      

      Currently jdbc-realm in elytron only uses base64 encoding if hash is stored in a text column. This way the migration is more complicated cos the password hash is not valid changing from old security system to elytron.

      Think also about the charset attribute.

      Attachments

        Issue Links

          Activity

            People

              jkalina@redhat.com Jan Kalina (Inactive)
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: