How to change credentials for SVN repository in Eclipse?

Viewed 262083

I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN repository with his credentials and selected 'Save password'. Now every time I do anything with SVN his cached credentials are used. How can I change them to mine?

I have already checked the 'workspace/.metadata/.plugins/org.tigris...' folders, and could not find any way to reset those cached credentials.

21 Answers

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8:

Usernames and passwords

Subclipse does not collect or store username and password credentials when defining a repository. This is because the JavaHL and SVNKit client adapters are intelligent enough to prompt you for this information when they need to -- including when your password has changed.

You can also allow the adapter to cache this information and a common question is how do you delete this cached information so that you can be prompted again? We have an open request to have an API added to JavaHL so that we could provide a UI to do this. Currently, you have to manually delete the cache. The location of the cache varies based on the client adapter used.

JavaHL caches the information in the same location as the command line client -- in the Subversion runtime configuration area. On Windows this is located in %APPDATA%\Subversion\auth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.

SVNKit caches information in the Eclipse keyring. By default this is a file named .keyring that is stored in the root of the Eclipse configuration folder. Both of these values can be overriden with command line options. To clear the cache, you have to delete the file. Eclipse will create a new empty keyring when you restart

Go to c:\Documents and Settings\[username]\Application Data\subversion\auth\svn.simple

and delete the hexadecimal file. Normally each file is associated with one repository

For Mac ,

  1. Close the Eclipse Workspace
  2. Go to /Users/username/.subversion/auth/svn.simple
  3. Delete. The file inside it with encrypted(Big Alpha Numeric) file name.
  4. Open key chain(/Applications/Utilities/) and delete the key saved for SVN.
  5. Now open Eclipse workspace try to update your project , prompt will show up asking you the SVN credentials
  6. Give you updated SVN credentials and update it In keychain .

I have been searching answer for the same, but none of above didn't work for me.But I did the following steps and got rectified.

My scenario:-

  1. Eclipse installed on linux
  2. Eclipse version: 2019.03
  3. Previously I selected, store Password locally ( so whenever any updates from existing svn repository , not prompting for password).

Solution:- Remove locally stored credentials.

Steps :

  1. In linux allow show hidden files ( Open File Explorer , Click On "View" and click on "Show Hidden Files"
  2. Go to User Home Folder-> .eclipse/.org.eclipse.equinox.security/
  3. Open & Edit "secure_storage" file any text edit and remove all the contents & save . ( Better to take backup of "secure_storage" file before editing)

Now will ask while connecting SVN

Thank You

Related