How to change credentials for SVN repository in Eclipse?
Solution 1
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
Solution 2
My wife suggested:
- Open SVN Repositories View
- Open Location Properties...
- Show Credentials For: press [X] button
- Select user, write password, press [Finish]
and all work!!!
Solution 3
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
Solution 4
It's too simple to change username and password in Eclipse.
Just follow the following steps:
In your Eclipse,
Goto Window -> Show View -> Other -> (Type as) SVN Repositories -> click that(SVN Repositories) -> Right Click SVN Repositories -> Location Properties -> General tab change the following details for credentials.,
that's it.
Solution 5
On Mac OS X, go to folder /$HOME (/Users/{user home}/). You will see file '.eclipse_keyring'. Remove it. All saved credentials will be lost.
Comments
-
Kirill Strizhak almost 3 years
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.
-
Kirill Strizhak almost 15 yearsSo, in my case I've been using JavaHL, which cashes credential data in the Subversion runtime configuration area. On Windows this was in "C:\Documents and Settings\%USER%\Application Data\Subversion\auth\svn.simple" in one of the files with a long HEX name. Opening them in notepad, locating the one with my colleagues credentials and deleting it solved the problem. Thanks for your help!
-
Hbas over 13 yearsGreat answer. To make it easy for other users, on Windows 7 it is under C:\Users\%USER%\AppData\Roaming\Subversion\auth\
-
luistamawong over 12 yearsIf using SVNKit (instead of JavaHL), it caches information in a file named .keyring under configuration\org.eclipse.core.runtime\ inside Eclipse. Close Eclipse and delete the file. Eclipse will create a new empty keyring when restarted.
-
Synox over 11 yearsOn Windows 7 you find the folder with (paste into explorer address): %APPDATA%\Subversion\auth
-
Mr. Lance E Sloan over 11 yearsThat appears to be for Subversive, not Subclipse. Is that right? Using Subclipse, I see "Properties", not "Location Properties...", and the dialog that appears for that does not contain anything about user, password, or authentication at all.
-
deniz about 11 yearsOn Linux, I needed to delete: $home/.subversion/auth/svn.simple/*
-
Pierluigi Vernetto over 10 yearsopen Windows/Preferences, type SVN in the search box, then "configuration location". The folder should contain a config and server files, and a auth subfolder...
-
Carl Pritchett over 10 yearsfor me the .keyring file was in /opt/eclipse/.configuration/org.eclipse.core.runtime/
-
marcolopes over 8 yearsThe problem is if we have MORE than one GIT account :-\ SVN always saves credentials with <github.com:443>
-
user1050755 over 8 yearsvery nice. In my case I had to manually set up the repository location and auth information before selecting maven project import because during import I could not enter any auth information........
-
Tony almost 7 yearsSimpler way CTRL + 3 -> Type
Secure Storage
-
Pablo M. about 3 yearsThis is a valid solution in Windows 10