Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JBWS-4438] Authentication always failed when the webservice security is configured with a custom realm #583

Open
wants to merge 1 commit into
base: jbossws-cxf-5.4.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ public Subject createSubject(SecurityDomainContext ctx, String name, String pass
}
if (isDigest && created != null && nonce != null) { // username token profile is using digest
// verify client's digest
TwoWayPassword recoveredTwoWayPassword = identity.getCredential(PasswordCredential.class).getPassword(TwoWayPassword.class);
PasswordCredential passwordCredential = identity.getCredential(PasswordCredential.class);
if (passwordCredential == null) {
throw MESSAGES.authenticationFailed(principal.getName());
}
TwoWayPassword recoveredTwoWayPassword = passwordCredential.getPassword(TwoWayPassword.class);
if (recoveredTwoWayPassword == null) {
SECURITY_LOGGER.plainTextPasswordMustBeRecoverable(principal.getName(), null);
throw MESSAGES.authenticationFailed(principal.getName());
Expand Down