-
Bug
-
Resolution: Done
-
Major
-
30.0.0.Beta1
-
None
-
---
-
---
There is wrong assumption about the password for the Identity is always clear password in the SubjectCreator.There could be md5 digest password and other types. Besides this issue, these lines logic seems not correct. These lines to get the clear password should only be needed by isDigest is true:
RealmIdentity identity = securityDomain.getIdentity(principal.getName()); if (identity.equals(RealmIdentity.NON_EXISTENT) || identity.getCredential(PasswordCredential.class) == null) { throw MESSAGES.authenticationFailed(principal.getName()); } ClearPassword clearPassword = identity.getCredential(PasswordCredential.class).getPassword(ClearPassword.class); // only realms supporting getCredential with clear password can be used with Username Token profile if (clearPassword == null) { throw MESSAGES.authenticationFailed(principal.getName()); } String expectedPassword = new String(clearPassword.getPassword()); if (isDigest && created != null && nonce != null) { // username token profile is using digest // verify client's digest if (!getUsernameTokenPasswordDigest(nonce, created, expectedPassword).equals(password)) { throw MESSAGES.authenticationFailed(principal.getName()); }
- clones
-
JBWS-4389 Wrong assumption about the Identity's password are all clearpassword
- Resolved
- is incorporated by
-
WFLY-18643 Upgrade jbossws-cxf to 7.0.0.Final
- Closed