Skip to content

Commit

Permalink
complex secret id (#2401)
Browse files Browse the repository at this point in the history
* complex secret id

* unique secret id
  • Loading branch information
alexander-skoblikov authored Feb 20, 2024
1 parent 5d77ec0 commit 5182ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public String getDisplayName() {

@Property
public String getSecretId() {
return secretValue.getSubjectId();
return secretValue.getUniqueId();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public WebConnectionInfo initConnection(
}
DBSSecretValue selectedSecret =
allSecrets.stream()
.filter(secret -> selectedSecretId.equals(secret.getSubjectId()))
.filter(secret -> selectedSecretId.equals(secret.getUniqueId()))
.findFirst().orElse(null);
if (selectedSecret == null) {
throw new DBWebException("Secret not found:" + selectedSecretId);
Expand Down

0 comments on commit 5182ea1

Please sign in to comment.