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

Added support for supplying a custom CertificateValidationCallback #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarkOtter
Copy link

@MarkOtter MarkOtter commented Jul 15, 2024

Checklist

  • I have read the Contributing Guide
  • I have checked to ensure this does not introduce an unintended breaking changes
  • I have considered appropriate testing for my change

Description

Our use case I'm trying to solve with this PR is that we need to implement custom Server Certificate validation in our code base.

We already do this succesfully on all outgoing connections (both http and npgsql), but weren't able to with DbUp because the package only allows use to supply a connection string. We need to attach a handler on the created NpgsqlConnection object.

This PR adds an optional options object two the Extension methods with which you can supply a validation callback handler. Also, the existing option to supply a client certificate is supported. Existing APIs won't break, I've only added new methods.

Please let me know what you think.

(Linking issue #23)

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.

1 participant