Hello,
When I create a JDBCRealm according to the attachment I can't log in with DIGEST authentication into the web app.
(part of the web.xml to force DIGEST authentication)
<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>PibSecureUserRealm</realm-name>
</login-config>
The passwords in the MySQL database are encrypted with the MySQL MD5() function.
But when I change the property "Password Encryption Algorithm" to "none" and store the passwords as plain text, the DIGEST authentication of the web app works and am able to login.
So DIGEST authentication only works now in GlassFish 4 with plain text passwords in the database.
Question:
How can I use MD5 encrypted passwords with the JDBCRealm and DIGEST authentication?
T.I.A.
Johan Borchers
Attachment | Size |
---|---|
1.png | 183.91 KB |