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

Adds ignoreSslErrors to the WebApiConnector class #300

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

PTKu
Copy link
Contributor

@PTKu PTKu commented Apr 10, 2024

Description

The most significant changes involve the addition of a new parameter ignoreSslErrors to the WebApiConnector class, CreateWebApi method, and WebApiConnectorFactory class. This parameter allows the user to choose whether to ignore SSL errors or not.

  1. The WebApiConnector class in WebApiConnector.cs has been updated to include a new parameter ignoreSSLErros in its constructor. This parameter is a boolean that, when set to true, will ignore SSL errors. If ignoreSSLErros is set to true, a lambda function is set to the CertificateCallback of ServerCertificateCallback that always returns true, effectively ignoring any SSL errors.

  2. The CreateWebApi method in WebApiConnectorExtensions.cs has been updated to include a new parameter ignoreSslErrors with a default value of false. The Parameters property of the ConnectorAdapter object returned by the method has been updated to include ignoreSslErrors.

  3. The WebApiConnectorFactory class in WebApiConnectorFactory.cs has been updated to handle the new ignoreSslErrors parameter. The WebApiConnector object returned by the Create method now includes ignoreSslErrors as a parameter.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Third party dependency update
  • Third party dependency addition

…`ignoreSslErrors` to the `WebApiConnector` class, `CreateWebApi` method, and `WebApiConnectorFactory` class. This parameter allows the user to choose whether to ignore SSL errors or not.

1. The `WebApiConnector` class in `WebApiConnector.cs` has been updated to include a new parameter `ignoreSSLErros` in its constructor. This parameter is a boolean that, when set to true, will ignore SSL errors. If `ignoreSSLErros` is set to true, a lambda function is set to the `CertificateCallback` of `ServerCertificateCallback` that always returns true, effectively ignoring any SSL errors.

2. The `CreateWebApi` method in `WebApiConnectorExtensions.cs` has been updated to include a new parameter `ignoreSslErrors` with a default value of false. The `Parameters` property of the `ConnectorAdapter` object returned by the method has been updated to include `ignoreSslErrors`.

3. The `WebApiConnectorFactory` class in `WebApiConnectorFactory.cs` has been updated to handle the new `ignoreSslErrors` parameter. The `WebApiConnector` object returned by the `Create` method now includes `ignoreSslErrors` as a parameter.
@PTKu PTKu merged commit 43b428a into dev Apr 10, 2024
2 checks passed
@PTKu PTKu deleted the add-ingore-ssl branch April 10, 2024 04:29
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