diff --git a/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java b/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java index 64defe95bd..753140bf38 100644 --- a/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java +++ b/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/handler/WSAuthSessionEventHandler.java @@ -32,6 +32,7 @@ import org.jkiss.code.NotNull; import org.jkiss.dbeaver.DBException; import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.model.auth.SMAuthInfo; +import org.jkiss.dbeaver.model.auth.SMAuthStatus; import org.jkiss.dbeaver.model.websocket.WSEventHandler; import org.jkiss.dbeaver.model.websocket.event.session.WSAuthEvent; @@ -45,7 +46,7 @@ public class WSAuthSessionEventHandler implements WSEventHandler { SMAuthInfo authInfo = event.getAuthInfo(); WebApplication webApplication = WebAppUtils.getWebApplication(); WebAppSessionManager sessionManager = webApplication.getSessionManager(); - if (authInfo.getAuthPermissions() == null) { + if (authInfo.getAuthPermissions() == null && authInfo.getAuthStatus() == SMAuthStatus.SUCCESS) { log.error("No auth permissions available in SUCCESS auth"); return; }