diff --git a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java index a6d2c5de00..d5d24b94b3 100644 --- a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java +++ b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java @@ -1255,7 +1255,7 @@ public class CBEmbeddedSecurityController implements SMAdminController, SMAuthen if (userIdFromCreds == null) { var error = "Invalid user credentials"; - updateAuthStatus(authId, SMAuthStatus.ERROR, authInfo.getAuthData(), error); + updateAuthStatus(authId, SMAuthStatus.ERROR, storedUserData, error); return SMAuthInfo.error(authId, error); } if (activeUserId == null) { @@ -1288,7 +1288,7 @@ public class CBEmbeddedSecurityController implements SMAdminController, SMAuthen } } catch (SQLException e) { var error = "Error during token generation"; - updateAuthStatus(authId, SMAuthStatus.ERROR, authInfo.getAuthData(), error); + updateAuthStatus(authId, SMAuthStatus.ERROR, storedUserData, error); throw new SMException(error, e); } }