[gnome-online-accounts/wip/rishi/owncloud-gssapi: 3/3] httpclient: Enable Negotiate authentication scheme



commit b1cfecb81ea8c78c0951ca97eeb05cfbd183befc
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 15 18:44:15 2016 +0100

    httpclient: Enable Negotiate authentication scheme
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762097

 src/goabackend/goahttpclient.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index 6f87231..a6dcedd 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -230,6 +230,12 @@ goa_http_client_check (GoaHttpClient       *self,
   data->session = soup_session_new_with_options (SOUP_SESSION_SSL_STRICT, FALSE,
                                                  NULL);
 
+  if (soup_auth_negotiate_supported)
+    {
+      soup_session_add_feature_by_type (data->session, SOUP_TYPE_AUTH_NEGOTIATE);
+      soup_session_add_feature_by_type (data->session, SOUP_TYPE_COOKIE_JAR);
+    }
+
   logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1);
   soup_logger_set_printer (logger, http_client_log_printer, NULL, NULL);
   soup_session_add_feature (data->session, SOUP_SESSION_FEATURE (logger));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]