Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8bca259
Partially implemented ssl error decision
Colman Oct 3, 2024
32b3c83
Partially implemented ssl error decision
Colman Oct 3, 2024
f24ded9
Partially implemented ssl error decision
Colman Oct 7, 2024
c44a50d
Partially implemented ssl error decision
Colman Oct 7, 2024
b1ed63e
Partially implemented ssl error decision
Colman Oct 7, 2024
90b1457
Partially implemented ssl error decision
Colman Oct 7, 2024
de9acf9
Partially implemented ssl error decision
Colman Oct 7, 2024
fdaa89f
Partially implemented ssl error decision
Colman Oct 7, 2024
0458aba
Partially implemented ssl error decision
Colman Oct 7, 2024
e2cb3a1
Partially implemented ssl error decision
Colman Oct 7, 2024
ca81379
Partially implemented ssl error decision
Colman Oct 7, 2024
5a94528
Partially implemented ssl error decision
Colman Oct 8, 2024
ae64dae
Partially implemented ssl error decision
Colman Oct 8, 2024
a06c18c
Partially implemented ssl error decision
Colman Oct 9, 2024
7634b1f
Partially implemented ssl error decision
Colman Oct 9, 2024
c9edcdc
Partially implemented ssl error decision
Colman Oct 9, 2024
81d045a
Partially implemented ssl error decision
Colman Oct 11, 2024
a81420d
Partially implemented ssl error decision
Colman Oct 15, 2024
384e94c
Partially implemented ssl error decision
Colman Oct 15, 2024
55fb7ef
Partially implemented ssl error decision
Colman Oct 16, 2024
8cd4127
Partially implemented ssl error decision
Colman Oct 16, 2024
515580a
Partially implemented ssl error decision
Colman Oct 16, 2024
97d26ea
Partially implemented ssl error decision
Colman Oct 16, 2024
3a9f7c6
Partially implemented ssl error decision
Colman Oct 16, 2024
464dba3
Partially implemented ssl error decision
Colman Oct 16, 2024
e8a591e
Partially implemented ssl error decision
Colman Oct 16, 2024
1f396ca
Partially implemented ssl error decision
Colman Oct 16, 2024
ffe9f00
Partially implemented ssl error decision
Colman Oct 16, 2024
7a3b559
Partially implemented ssl error decision
Colman Oct 16, 2024
ffe6662
Partially implemented ssl error decision
Colman Oct 16, 2024
4988352
Partially implemented ssl error test
Colman Oct 16, 2024
9333d5d
Partially implemented ssl error test
Colman Oct 16, 2024
ac544c9
Partially implemented ssl error decision
Colman Oct 17, 2024
afe3943
Partially implemented ssl error decision
Colman Oct 17, 2024
998e334
Partially implemented ssl error decision
Colman Oct 17, 2024
941915c
Partially implemented ssl error decision
Colman Oct 17, 2024
7ef9309
Fixed versions
Colman Oct 17, 2024
b62371c
Fixed versions
Colman Oct 17, 2024
b0735a7
Added test
Colman Oct 17, 2024
7a10765
Merge branch 'main' into add-an-option-to-bypass-ssl-checks
Colman Oct 18, 2024
64266f6
Fixed change logs
Colman Oct 18, 2024
91cdee9
Added path based dependency overrides
Colman Oct 18, 2024
ae9162d
Added Dart unit tests to the Android package
Colman Oct 18, 2024
f2e0b64
Formatted files
Colman Oct 18, 2024
af4a93a
Fixed switch statements
Colman Oct 18, 2024
0fffc68
Merge branch 'main' into add-an-option-to-bypass-ssl-checks
Colman Oct 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Partially implemented ssl error decision
  • Loading branch information
Colman committed Oct 16, 2024
commit 515580aee609bc5cc9b776d353dc8b1dbffc4986
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ class WebKitNavigationDelegate extends PlatformNavigationDelegate {
NSUrlSessionAuthChallengeDisposition disposition,
NSUrlCredential? credential,
) completionHandler,
) {
) async {
if (challenge.protectionSpace.authenticationMethod ==
NSUrlAuthenticationMethod.httpBasic) {
final void Function(HttpAuthRequest)? callback =
Expand Down Expand Up @@ -1184,7 +1184,7 @@ class WebKitNavigationDelegate extends PlatformNavigationDelegate {
final FutureOr<SslErrorDecision> Function(SslError)? callback =
weakThis.target?._onSslError;
if (callback != null) {
callback(
final sslErrorDecision = await callback(
SslError(
host: challenge.protectionSpace.host!,
scheme: challenge.protectionSpace.protocol!,
Expand All @@ -1200,6 +1200,19 @@ class WebKitNavigationDelegate extends PlatformNavigationDelegate {
),
),
);

if (sslErrorDecision == SslErrorDecision.proceed) {
completionHandler(
NSUrlSessionAuthChallengeDisposition.useCredential,
null,
);
} else if (sslErrorDecision == SslErrorDecision.cancel) {
completionHandler(
NSUrlSessionAuthChallengeDisposition
.cancelAuthenticationChallenge,
null,
);
}
return;
}
}
Expand Down