简体   繁体   English

Mac OSX 中 eclipse 中的凭据存储失败

[英]Credential storage failed in eclipse in Mac OSX

When i'm connecting to server projects in tfs using eclipse in mac with my credentials it is connecting without any issues, but when i check the 'save password' at the login dialogue box it is showing an error as当我在 Mac 中使用 eclipse 和我的凭据连接到 tfs 中的服务器项目时,它连接没有任何问题,但是当我在登录对话框中检查“保存密码”时,它显示错误为

'Credential storage failed (Could not save your credentials)' '凭据存储失败(无法保存您的凭据)'

Is there any way to get rid of this, because I don't want to enter my username and password every time when I open eclipse.有什么办法可以摆脱这个,因为我不想每次打开eclipse时都输入我的用户名和密码。

See the following images.请参阅以下图片。

在此处输入图像描述

. .

. .

在此处输入图像描述

Any comments or suggestions would be appreciated.任何意见或建议将不胜感激。 Thank you in advance.先感谢您。

Use Keychain Access utility to fix it. 使用Keychain Access实用程序来修复它。 If you see more than one tfs line in there remove the extras. 如果您在其中看到多个tfs行,请删除附加内容。 Click on the one you leave in the list. 单击列表中的一个。 I am foggy on details of what I did but I remember clicking on Access Control tab to allow keychain. 我对我所做的事情的细节很模糊,但我记得点击“访问控制”选项卡以允许钥匙串。 I think it needs your Mac account password to allow the keychain (not your TFS password). 我认为需要您的Mac帐户密码才能使用钥匙串(而不是您的TFS密码)。

Andrei is correct. 安德烈是对的。 But, I thought it would help to clarify the steps: 但是,我认为这有助于澄清步骤:

  • Start Keychain Access 启动Keychain Access
  • Click 'All Items' under 'Category' 点击“类别”下的“所有项目”
  • Enter the name of your tfs server into the search box 在搜索框中输入您的tfs服务器的名称
  • Delete any entries whose 'name' is the same as your tfs server 删除“name”与tfs服务器相同的任何条目
  • Try to connect again. 尝试再次连接。

This worked for me. 这对我有用。 I had this problem after my password had changed. 密码更改后我遇到了这个问题。

I occasionally run into this myself.我自己偶尔也会遇到这种情况。 I have not identified when it happens but I do suspect it has something to do with Eclipse updating itself, which ruins the signature.我没有确定它何时发生,但我怀疑它与 Eclipse 更新自身有关,这会破坏签名。 There is a long standing open bug but I don't see it being addressed anytime soon.有一个长期存在的开放错误,但我认为它不会很快得到解决。

Here is what I do to get it working again: 0. Close Eclipse这是我要让它再次工作的方法: 0. 关闭 Eclipse

  1. Open macOS Keychain打开 macOS 钥匙串
  2. Search for password entry labeled "equinox.secure.storage"搜索标记为“equinox.secure.storage”的密码条目
  3. Delete entry "equinox.secure.storage"删除条目“equinox.secure.storage”
  4. Open terminal打开终端
  5. rm -rf ~/.eclipse/org.eclipse.equinox.security rm -rf ~/.eclipse/org.eclipse.equinox.security
  6. Start Eclipse启动 Eclipse

(see comment 40 on that bug ) (请参阅关于该错误的评论 40

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM