This content has been marked as final.
Show 1 reply
-
1. Re: JDBC Authentication with salted-simple-digest-mapper, Invalid base 64 character
mayerw01 Dec 5, 2019 8:57 AM (in response to nschweig)Please look into WildFly Elytron Security chap 2.5.4 how to create the digets and salts
byte[] salt = original.getSalt();
byte[] digest = original.getDigest();the salt and digest should be encoded to base64 (eg Base64.getEncoder().encodeToString(digest)))
the encoded values should then be provided in the SQL query like
select u.digest , u.salt, r.role from users u, roles r where u.username = ? and u.username = r.username