You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (info.getTags().contains(PROXY_AUTH_ENABLED)) {
268
+
// This scenario simulates a proxy that requires authentication and does not accept preemptive auth:
269
+
// the first request without Proxy-Authorization header gets a 407 with the Proxy-Authenticate challenge, then the client retries with the Proxy-Authorization header.
270
+
// This is not used because the Scanner HttpClient sends Proxy-Authorization preemptively by default,
271
+
// but keep it just in case we want to support it once we upgrade to JDK 24+ (because of https://bugs.openjdk.org/browse/JDK-8326949)
267
272
proxyMock.stubFor(get(urlMatching("/batch/.*"))
268
273
.inScenario("Proxy Auth")
269
274
.whenScenarioStateIs(STARTED)
275
+
.withHeader("Proxy-Authorization", absent())
270
276
.willReturn(aResponse()
271
277
.withStatus(407)
272
278
.withHeader("Proxy-Authenticate", "Basic realm=\"Access to the proxy\""))
0 commit comments