@@ -329,7 +329,8 @@ def _default_user_login_successful(self, full_access: bool) -> bool:
329329 Login using the default user account.
330330
331331 Args:
332- full_access (bool): If True, the user has to have full access to the Redis
332+ full_access (bool): If True, the user has sufficient access to perform all user
333+ operations. If False, the user has limited access or no access to perform user operations.
333334
334335 Returns:
335336 bool: True if the login was successful, False otherwise.
@@ -339,8 +340,8 @@ def _default_user_login_successful(self, full_access: bool) -> bool:
339340 return True
340341
341342 try :
342- self . connector . get ( MessageEndpoints . acl_accounts ())
343- # ACLs are enabled but we have full access. No need to login.
343+ # We check an endpoint on level INFO to verify that the user has sufficient access to perform all user operations.
344+ self . connector . get ( MessageEndpoints . device_config ())
344345 return True
345346 # pylint: disable=broad-except
346347 except Exception :
@@ -366,7 +367,7 @@ def _user_service_login(self, username: str | None = None) -> None:
366367 raise BECAuthenticationError ("Login information not available. Unable to login." )
367368 self ._atlas_login = self ._info .atlas_login
368369 if not username and not self ._info .atlas_login :
369- return self .login_with_token (username = "user " , token = None )
370+ return self .login_with_token (username = "default " , token = None )
370371 return self .login (username )
371372
372373 def _check_redis_auth (self , user : str | None , password : str | None ) -> bool :
0 commit comments