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

feat(binding_http): add possibility to define a custom SecurityContext #194

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented Nov 4, 2024

To be able to add additional trusted certificates to an HttpClient, this PR adjusts the binding implementation a little to allow for the creation of a custom internal SecurityContext, which can be enhanced with certificates that are included in an HttpClientConfig.

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 63.47%. Comparing base (78fe59a) to head (03796d6).

Files with missing lines Patch % Lines
lib/src/binding_http/http_client.dart 0.00% 6 Missing ⚠️
lib/src/binding_http/http_client_factory.dart 0.00% 1 Missing ⚠️
lib/src/binding_http/http_config.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   63.69%   63.47%   -0.23%     
==========================================
  Files          78       78              
  Lines        2292     2300       +8     
==========================================
  Hits         1460     1460              
- Misses        832      840       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JKRhb JKRhb force-pushed the http-security-context branch from 76363df to 2ab447b Compare November 4, 2024 11:55
@JKRhb JKRhb force-pushed the http-security-context branch from 2ab447b to 03796d6 Compare November 4, 2024 14:21
@JKRhb JKRhb marked this pull request as ready for review November 4, 2024 14:26
@JKRhb JKRhb merged commit ad4e7cd into main Nov 4, 2024
5 checks passed
@JKRhb JKRhb deleted the http-security-context branch November 4, 2024 14:26
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.

2 participants