Skip to content

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

Merged
merged 3 commits into from
Feb 25, 2020

Conversation

barbelity
Copy link
Contributor

No description provided.

Copy link
Member

@yahavi yahavi left a 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!


public void updateConfig(XrayServerConfigImpl xrayConfig) {
if (this.xrayConfig.getUrl() != null && !this.xrayConfig.getUrl().equals(xrayConfig.getUrl())) {
this.xrayConfig.removeCredentialsFromPasswordSafe();
Copy link
Member

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?

Copy link
Contributor Author

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.

@barbelity
Copy link
Contributor Author

I was using an incorrect API for creating the CredentialsAttributes object.
It should work now after restart as well.

Copy link
Member

@yahavi yahavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, @barbelity

@yahavi yahavi linked an issue Feb 25, 2020 that may be closed by this pull request
@barbelity barbelity merged commit 545f1be into jfrog:master Feb 25, 2020
@barbelity barbelity deleted the use-password-safe branch February 25, 2020 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use IntelliJ IDE PasswordSafe for Storing Credentials
2 participants