Fix a regression in the preemptive authentication support (enhancement <bug>12428</bug>) that could trigger authentication even if preemptive authentication was disabled.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1141578 13f79535-47bb-0310-9956-
ffa450edef68
}
}
- if (!authRequired) {
+ if (!authRequired && context.getPreemptiveAuthentication()) {
authRequired =
request.getCoyoteRequest().getMimeHeaders().getValue(
"authorization") != null;
}
- if (!authRequired) {
+ if (!authRequired && context.getPreemptiveAuthentication()) {
X509Certificate[] certs = (X509Certificate[]) request.getAttribute(
Globals.CERTIFICATES_ATTR);
authRequired = certs != null && certs.length > 0;
implement SingleThreadModel. Based on a patch by Felix Schumacher.
(markt)
</fix>
+ <fix>
+ <bug>51453</bug>: Fix a regression in the preemptive authentication
+ support (enhancement <bug>12428</bug>) that could trigger authentication
+ even if preemptive authentication was disabled. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">