Skip to content

fix(desktop): pass credentials when checking default server health on startup#16125

Open
DaneelOlivaw1 wants to merge 7 commits intoanomalyco:devfrom
DaneelOlivaw1:fix/desktop-default-server-auth
Open

fix(desktop): pass credentials when checking default server health on startup#16125
DaneelOlivaw1 wants to merge 7 commits intoanomalyco:devfrom
DaneelOlivaw1:fix/desktop-default-server-auth

Conversation

@DaneelOlivaw1
Copy link

Issue for this PR

Fixes #16123

Type of change

  • Bug fix

What does this PR do?

When a remote server with authentication is set as default, the desktop app fails to connect on startup. The root cause is that checkHealthOrAskRetry() doesn't pass credentials to checkHealth(), causing authentication to fail.

This PR fixes the issue by:

  1. Changing default server storage from URL string to full connection object (url + username + password)
  2. Updating checkHealthOrAskRetry() to accept and pass credentials
  3. Updating startup logic to use stored credentials
  4. Adding backward compatibility for existing URL-only storage

How did you verify your code works?

The fix ensures that when a default server with authentication is configured:

  1. Credentials are stored along with the URL
  2. On startup, credentials are retrieved and passed to the health check
  3. The server connection succeeds with proper authentication

Backward compatibility is maintained - existing users with URL-only storage will continue to work (credentials will be optional).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

… startup

- Store full server config (url + username + password) instead of just URL
- Pass credentials to checkHealthOrAskRetry during startup
- Update frontend to save complete server config when setting default
- Add backward compatibility for existing URL-only storage

Fixes anomalyco#16123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(desktop): Desktop app fails to connect to authenticated remote server on startup

1 participant