[webkit-gtk] Authentication dialog API

Carlos Garcia Campos cgarcia at igalia.com
Fri Jul 26 05:12:27 PDT 2013


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
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20130726/8cd27657/attachment.sig>


More information about the webkit-gtk mailing list