diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebSecretInfo.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebSecretInfo.java index ee412bde07..627947a358 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebSecretInfo.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebSecretInfo.java @@ -33,6 +33,6 @@ public String getDisplayName() { @Property public String getSecretId() { - return secretValue.getSubjectId(); + return secretValue.getUniqueId(); } } diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/core/impl/WebServiceCore.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/core/impl/WebServiceCore.java index e814113d04..5707ac37ca 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/core/impl/WebServiceCore.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/core/impl/WebServiceCore.java @@ -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);