[NetworkManager-openconnect: 1/2] Set WebView cookie accept policy




commit c1b866680d4887c073f18a7c3b9b7d134bdade8c
Author: Robin A. Meade <robin a meade gmail com>
Date:   Thu May 26 06:47:11 2022 +0000

    Set WebView cookie accept policy
    
    For certain features, such as the Duo "Remember me" checkbox, it is necessary to set the cookie policy to 
"accept always."
    
    Closes #73

 auth-dialog/main.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 6a3b164..d618967 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -754,6 +754,7 @@ static gboolean open_webview_idle(gpointer data)
                storage = g_string_append(storage, "/openconnect_saml_cookies");
        if (storage) {
                webkit_cookie_manager_set_persistent_storage(cm, storage->str, 
WEBKIT_COOKIE_PERSISTENT_STORAGE_TEXT);
+               webkit_cookie_manager_set_accept_policy(cm, WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS);
                g_string_free(storage, TRUE);
        }
 


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