Discussions  >  SharpSvn Community Support and Feedback  >  RE: [SharpSvn] I need to clear the Authentication Data.

Hide all messages in topic

All messages in topic

RE: [SharpSvn] I need to clear the Authentication Data. RE: [SharpSvn] I need to clear the Authentication Data.

Author slavat (OCN Member)
Full name Slava Tkachenko
Date 2009-05-14 08:00:45 PDT
Message Thanks.
I just figured it out.


-----Original Message-----
From: Bert Huijben [mailto:bert at qqmail dot nl]
Sent: Wednesday, May 13, 2009 5:45 PM
To: Slava Tkachenko; users at sharpsvn dot open dot collab dot net
Subject: RE: [SharpSvn] I need to clear the Authentication Data.



> -----Original Message-----
> From: Slava Tkachenko [mailto:slavat at magenic dot com]
> Sent: woensdag 13 mei 2009 23:49
> To: users at sharpsvn dot open dot collab dot net
> Subject: [SharpSvn] I need to clear the Authentication Data.
>
> Hi.
>
> I am trying to reproduce the functionality of the TortoiseSVN. There
> is Settings, Saved Data, Authentication data, and <Clear> button.
> Which will force users to login and except the Certificate.
>
> I was trying to use:
> using(var client = new SvnClient())
> {
> SharpSvn.UI.SvnUI.Bind(client, ApplicationWindow);
> client.Authentication.Clear();
> }
>
> It did not work. Any idea?

The Authentication.Clear() command only clears the authentication
handlers
that are registered to allow reordering.

The TortoiseSVN button you are talking deletes all files below
%APPDATA%\Subversion\Auth.

Recent SharpSvn versions have a bit friendlier command that allows you
to
delete specific records. This is handled via
.Authentication.GetC​achedItems(<type​>)

The .Delete() method on the retrieved objects can be used to delete the
specific cache item.

For completeness:
The TortoiseSVN method and the SharpSvn method are both based on API's
and/or implementation details that aren't guaranteed to be available in
future Subversion releases. So you can't trust this to work on all
future
versions, but most likely it will work for the foreseeable future.

    Bert

RE: [SharpSvn] I need to clear the Authentication Data. RE: [SharpSvn] I need to clear the Authentication Data.

Author slavat (OCN Member)
Full name Slava Tkachenko
Date 2009-05-14 07:35:50 PDT
Message There is no .Delete(). I can see only
.Remove(<SvnAuthe​nticationCacheItem​>).
Is this the same?

Thanks

-----Original Message-----
From: Bert Huijben [mailto:bert at qqmail dot nl]
Sent: Wednesday, May 13, 2009 5:45 PM
To: Slava Tkachenko; users at sharpsvn dot open dot collab dot net
Subject: RE: [SharpSvn] I need to clear the Authentication Data.



> -----Original Message-----
> From: Slava Tkachenko [mailto:slavat at magenic dot com]
> Sent: woensdag 13 mei 2009 23:49
> To: users at sharpsvn dot open dot collab dot net
> Subject: [SharpSvn] I need to clear the Authentication Data.
>
> Hi.
>
> I am trying to reproduce the functionality of the TortoiseSVN. There
> is Settings, Saved Data, Authentication data, and <Clear> button.
> Which will force users to login and except the Certificate.
>
> I was trying to use:
> using(var client = new SvnClient())
> {
> SharpSvn.UI.SvnUI.Bind(client, ApplicationWindow);
> client.Authentication.Clear();
> }
>
> It did not work. Any idea?

The Authentication.Clear() command only clears the authentication
handlers
that are registered to allow reordering.

The TortoiseSVN button you are talking deletes all files below
%APPDATA%\Subversion\Auth.

Recent SharpSvn versions have a bit friendlier command that allows you
to
delete specific records. This is handled via
.Authentication.GetC​achedItems(<type​>)

The .Delete() method on the retrieved objects can be used to delete the
specific cache item.

For completeness:
The TortoiseSVN method and the SharpSvn method are both based on API's
and/or implementation details that aren't guaranteed to be available in
future Subversion releases. So you can't trust this to work on all
future
versions, but most likely it will work for the foreseeable future.

    Bert

RE: [SharpSvn] I need to clear the Authentication Data. RE: [SharpSvn] I need to clear the Authentication Data.

Author rhuijben (OCN Member)
Full name Bert Huijben
Date 2009-05-13 15:45:32 PDT
Message > -----Original Message-----
> From: Slava Tkachenko [mailto:slavat at magenic dot com]
> Sent: woensdag 13 mei 2009 23:49
> To: users at sharpsvn dot open dot collab dot net
> Subject: [SharpSvn] I need to clear the Authentication Data.
>
> Hi.
>
> I am trying to reproduce the functionality of the TortoiseSVN. There
> is Settings, Saved Data, Authentication data, and <Clear> button.
> Which will force users to login and except the Certificate.
>
> I was trying to use:
> using(var client = new SvnClient())
> {
> SharpSvn.UI.SvnUI.Bind(client, ApplicationWindow);
> client.Authentication.Clear();
> }
>
> It did not work. Any idea?

The Authentication.Clear() command only clears the authentication handlers
that are registered to allow reordering.

The TortoiseSVN button you are talking deletes all files below
%APPDATA%\Subversion\Auth.

Recent SharpSvn versions have a bit friendlier command that allows you to
delete specific records. This is handled via
.Authentication.GetC​achedItems(<type​>)

The .Delete() method on the retrieved objects can be used to delete the
specific cache item.

For completeness:
The TortoiseSVN method and the SharpSvn method are both based on API's
and/or implementation details that aren't guaranteed to be available in
future Subversion releases. So you can't trust this to work on all future
versions, but most likely it will work for the foreseeable future.

    Bert

[SharpSvn] I need to clear the Authentication Data. [SharpSvn] I need to clear the Authentication Data.

Author slavat (OCN Member)
Full name Slava Tkachenko
Date 2009-05-13 14:49:21 PDT
Message Hi.

I am trying to reproduce the functionality of the TortoiseSVN. There is Settings, Saved Data, Authentication data, and <Clear> button. Which will force users to login and except the Certificate.

I was trying to use:
using(var client = new SvnClient())
{
SharpSvn.UI.SvnUI.Bind(client, ApplicationWindow);
    client.Authentication.Clear();
}

It did not work. Any idea?
Messages per page: