f41c9f4 Handle failed authentication via cookie

1 file Authored by simo 7 years ago, Committed by tkrizek 7 years ago,
1 file changed. 32 lines added. 20 lines removed.
    Handle failed authentication via cookie
    
    If cookie authentication fails and we get back a 401 see if we
    tried a SPNEGO auth by checking if we had a GSSAPI context. If not
    it means our session cookie was invalid or expired or some other
    error happened on the server that requires us to try a full SPNEGO
    handshake, so go ahead and try it.
    
    Fixes https://pagure.io/freeipa/issue/6775
    
    Signed-off-by: Simo Sorce <simo@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+32 -20