michael-o commented on code in PR #615:
URL: 
https://github.com/apache/httpcomponents-client/pull/615#discussion_r1975116073


##########
httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/gss/GssSchemeBase.java:
##########
@@ -183,35 +184,54 @@ public void processChallenge(
                 state = State.TOKEN_READY;
                 break;
             case TOKEN_SENT:
-                if (challenged) {
-                    state = State.TOKEN_READY;
-                } else if (mutualAuth) {
-                    // We should have received a valid mutualAuth token
-                    if (!gssContext.isEstablished()) {
+                if (challengeToken == null) {
+                    if (!challenged && ignoreMissingToken) {
+                        // Got a 200 without a challenge. Old non RFC 
compliant server.

Review Comment:
   Why 200? The auth loop can be completed on any response status unless the 
intial token was incorrect.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to