Hi, 

I've just uploaded a new patch based on this to 
https://bugs.webkit.org/show_bug.cgi?id=99352 incorporating all feedback so far 
and complete docs.

The latest proposal for the authentication API consists of exposing a 
WebKitAuthenticationRequest

        WEBKIT_API GType
        webkit_authentication_request_get_type                 (void);

        WEBKIT_API gboolean
        webkit_authentication_request_can_save_credentials     
(WebKitAuthenticationRequest *request);

        WEBKIT_API WebKitCredential *
        webkit_authentication_request_get_proposed_credential  
(WebKitAuthenticationRequest *request);

        WEBKIT_API const gchar *
        webkit_authentication_request_get_host                 
(WebKitAuthenticationRequest *request);

        WEBKIT_API gint
        webkit_authentication_request_get_port                 
(WebKitAuthenticationRequest *request);

        WEBKIT_API const gchar *
        webkit_authentication_request_get_realm                
(WebKitAuthenticationRequest *request);

        WEBKIT_API WebKitAuthenticationScheme
        webkit_authentication_request_get_scheme               
(WebKitAuthenticationRequest *request);

        WEBKIT_API void
        webkit_authentication_request_authenticate             
(WebKitAuthenticationRequest *request,
                                                                
WebKitCredential            *credential);

        WEBKIT_API void
        webkit_authentication_request_cancel                   
(WebKitAuthenticationRequest *request);

Which uses a WebKitCredential

        WEBKIT_API GType
        webkit_credential_get_type             (void);

        WEBKIT_API WebKitCredential *
        webkit_credential_copy                 (WebKitCredential            
*credential);

        WEBKIT_API void
        webkit_credential_free                 (WebKitCredential            
*credential);

        WEBKIT_API WebKitCredential *
        webkit_credential_new                  (const gchar                 
*username,
                                                const gchar                 
*password,
                                                WebKitCredentialPersistence  
persistence);

        WEBKIT_API const gchar *
        webkit_credential_get_username         (WebKitCredential            
*credential);

        WEBKIT_API const gchar *
        webkit_credential_get_password         (WebKitCredential            
*credential);

        WEBKIT_API gboolean
        webkit_credential_has_password         (WebKitCredential            
*credential);

        WEBKIT_API WebKitCredentialPersistence
        webkit_credential_get_persistence      (WebKitCredential            
*credential);


This API proposal looks like it is stabilising, so any feedback or comments 
would be welcome before I move on to the tests.

Regards
Brian



_______________________________________________
webkit-gtk mailing list
webkit-gtk@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to