Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept non-trusted certificates option #100

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

tomaszgolebiowski
Copy link
Collaborator

@tomaszgolebiowski tomaszgolebiowski commented Sep 27, 2024

@@ -18,6 +18,7 @@ public void ForceBindingsUpdate()
// This is a workaround to get bindings updated. The second solution is to use NotifyPropertyChange for every TextBox in the Xaml, but current solution is a little more "clean" - everything is clearly visible in a one place.
SourcegraphUrlTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateSource();
ConfigurationsTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateSource();
AcceptNonTrustedCertCheckBox.GetBindingExpression(CheckBox.IsCheckedProperty)?.UpdateSource();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed. Only TextBox controls do need those additional binding calls.

@@ -449,6 +452,35 @@ private void OnAfterCloseSolution(object sender, EventArgs e)
}
}

private async Task TestServerConnection(string serverAddress)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to add modal dialog that will show the warning, and two options button, like:

"Do you want to change non-trusted certificate policy?"

"SSL certificate problem: self-signed certificate in servers certificate chain. Consider using 'Accept non-trusted certificates' option in Cody settings window."

  • "Change"
  • "Cancel"

After clicking the first button, we will display the options page via ShowOptionPage(typeof(GeneralOptionsPage)); and user could change the setting immediately.

@tomaszgolebiowski tomaszgolebiowski merged commit 779619c into main Sep 27, 2024
2 checks passed
@tomaszgolebiowski tomaszgolebiowski deleted the tg/accept-non-trusted-cert branch September 27, 2024 14:04
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.

3 participants