[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Http authentication

From: Branko Čibej <brane_at_apache.org>
Date: Wed, 18 Jul 2018 16:45:38 +0200

On 18.07.2018 15:38, Essig Felix wrote:
>
> Hi,
>
>  
>
> I have a question about the http authentication when using the
> subversion api 1.8.13.
>
> For example using the ‚svn_client_list3‘ function:
>
> Everytime this function is called the first http request does not
> contain any Authorization header which leads to a ‚401 Authorization
> Required‘ response.
>
> In my opinion this leads to an unnecessary delay when the function is
> called multiple times and the same credentials could be used.
>
>  
>
> When calling this function the svn_client_ctx_t contains an
> svn_auth_baton_t with set default username and default password
> parameters.
>
>  
>
> Now to my actual question:
>
> Can this behaviour somehow be changed or is it just designed to work
> this way? I also know that the version I’m using is not the newest one
> so if you think an upgrade to a newer version could lead to some
> performance improvement please let me know.
>

You can either modify the auth baton or create your own. See
svn_cmdline_create_auth_baton2 in include/svn_cmdline.h and
subversion/libsvn_subr/cmdline.c.

-- Brane
Received on 2018-07-18 16:45:49 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.