GNOME Bugzilla – Bug 788238
Fallback to another authentication type if the current failed
Last modified: 2017-10-04 18:23:40 UTC
Fallback to another authentication type if the current type failed. More specifically if the Negotiate failed (kerberos is not properly configured), then libsoup should fallback to Basic auth (if server supports it). Currently in a such case it is not possible to load the page at all (in WebKitGTK+).
Created attachment 360532 [details] [review] Proposed patch
Comment on attachment 360532 [details] [review] Proposed patch Ah... the code was written assuming that soup_auth_new() would never fail for a known type. I think you could simplify this patch by just moving the "auth = soup_auth_new ..." inside the loop, and only break out of the loop if it succeeds.
Created attachment 360555 [details] [review] Address review comments
Fixed with the following commits: commit adb51cb5 in the gnome-3-22 branch commit bf183e2a in the gnome-3-24 branch commit 6a1ab1ee in the master branch
Drive-by heckling... does this handle the fact that GSSAPI auth is per-connection, while others are per-request?
That already worked fine. The title is slightly confusing; it's talking about failure to construct a SoupAuth, not failure to perform auth-specific negotiation with the peer.