From 4ec509248a567a6d331cc3189f0afbcc1eaf8c29 Mon Sep 17 00:00:00 2001 From: Ainur Date: Mon, 16 Dec 2024 15:27:47 +0100 Subject: [PATCH] CB-6044 do not save api token on auth --- .../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();