I don't know much about this, but I thought repeating sending the
username and password was frowned upon.  Why is this a better approach
than the session/login approach?

On Wed, Mar 17, 2010 at 8:17 AM, Cédric Krier <cedric.kr...@b2ck.com> wrote:
> Hi,
>
> I propose to change the authentication mechanism used in XML-RPC protocols.
> Currently, it requires to call "login" function to retreive a user id and a
> sesssion and pass this parameters at each function call.
> My suggestion is to use the standard authentication of HTTP (first the Basic)
> so the username and password will be passed in the header (like for WebDAV).
>
> So the example in http://code.google.com/p/tryton/wiki/RemoteCalls will
> become:
>
> s = xmlrpclib.ServerProxy ('http://user:passw...@localhost:8069/try')
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: cedric.kr...@b2ck.com
> Website: http://www.b2ck.com/
>

-- 
tryton-dev@googlegroups.com mailing list

Reply via email to