El vie, 26-07-2013 a las 12:11 +0100, Brian Holt escribió:
> Apache has some documentation for HTTP authentication that may well be of 
> assistance to the design of this API: 
> https://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html.
> 
> What I found interesting is the ability to set the authentication scope as 
> well as the username and password e.g.
> 
> credsProvider.setCredentials(
>     new AuthScope("otherhost", 8080, AuthScope.ANY_REALM, "ntlm"), 
>     new UsernamePasswordCredentials("u3", "p3"));
> 
> Do you think it would be useful to create another boxed type called
> WebKitAuthenticationScope would contain the host, port, realm, etc by
> wrapping a WebCore::ProtectionSpace.

I think we can add those methods directly to auth request object.

> Authentication might then look as follows:
> 
> WEBKIT_API void
> webkit_authentication_request_authenticate             
> (WebKitAuthenticationRequest *request,
>                                                         WebKitCredential      
>       *credential,
>                                                         
> WebKitAuthenticationScope   *scope);
> 
> I do realise that the AuthenticationDecisionListener doesn't support
> setting the scope, so maybe this is premature.  But I think its
> worthwhile having the discussion.

Because the scope is not needed to do the authentication, but to build
the UI, no?

> Regards
> Brian
> 
> 
> _______________________________________________
> webkit-gtk mailing list
> [email protected]
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
webkit-gtk mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to