From 7f13f70b261cf6e8722e4fd25330e93effa3e42d Mon Sep 17 00:00:00 2001 From: Ainur <59531286+yagudin10@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:16:16 +0200 Subject: [PATCH] CB-6044 do not save api token on auth (#3138) Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com> --- .../src/io/cloudbeaver/model/user/WebUserOriginInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/user/WebUserOriginInfo.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/user/WebUserOriginInfo.java index 5c73f3db49..06c738f464 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/user/WebUserOriginInfo.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/user/WebUserOriginInfo.java @@ -92,7 +92,7 @@ public WebPropertyInfo[] getDetails() throws DBWebException { } try { SMAuthProvider authProvider = this.authProviderDescriptor.getInstance(); - if (authProvider instanceof SMAuthProviderExternal) { + if (authProvider instanceof SMAuthProviderExternal && !authProviderDescriptor.isAuthHidden()) { // read user's info from credentials, previously we tried to read data from external service using // SMAuthProviderExternal#getUserDetails var creds = loadCredentials();