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

[ELY-734] Don't report an error if there is no peer cerificate, instead report no authentication in progress and return. #547

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

darranl
Copy link
Contributor

@darranl darranl commented Nov 10, 2016

This allows other configured mechanisms an opportunity to authenticate.

…ad report no authentication in progress and return.

This allows other configured mechanisms an opportunity to authenticate.
throw log.mechCallbackHandlerFailedForUnknownReason(CLIENT_CERT_NAME, e).toHttpAuthenticationException();
log.trace("CLIENT-CERT Peer Unverified");
request.noAuthenticationInProgress();
return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have to do something to establish the anonymous identity then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is just the mechanism, the outer HTTP framework handles this.

This is where each mechanism is given an opportunity to authenticate if it can based on the information it has to hand, if non succeed the outer framework will then decide if we have to challenge or prevent access.

We need each mechanism that can't authenticate to do nothing this way to give the next in the chain the opportunity to do something.

@dmlloyd dmlloyd added the +1 DML label Nov 11, 2016
@pedroigor pedroigor merged commit ea6a96d into wildfly-security:master Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants