-
Notifications
You must be signed in to change notification settings - Fork 35
Use IntelliJ IDE PasswordSafe to store credentials #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having an issue after IDEA restart. The URL and Password are correct, but the username is like the URL. Please fix!
src/main/java/com/jfrog/ide/idea/configuration/GlobalSettings.java
Outdated
Show resolved
Hide resolved
src/main/java/com/jfrog/ide/idea/configuration/XrayServerConfigImpl.java
Outdated
Show resolved
Hide resolved
|
||
public void updateConfig(XrayServerConfigImpl xrayConfig) { | ||
if (this.xrayConfig.getUrl() != null && !this.xrayConfig.getUrl().equals(xrayConfig.getUrl())) { | ||
this.xrayConfig.removeCredentialsFromPasswordSafe(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first glance, it looks like updateConfig removes the credentials from the passwordSafe and set them again. Are you sure the deletion is necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it is necessary.
If a certain URL was previously saved to the password safe, and then the URL changes -> I think we should remove the old one.
src/main/java/com/jfrog/ide/idea/configuration/GlobalSettings.java
Outdated
Show resolved
Hide resolved
I was using an incorrect API for creating the CredentialsAttributes object. |
9b276d4
to
e5300da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, @barbelity
No description provided.