[webview_flutter] Support for handling basic authentication requests#4140
[webview_flutter] Support for handling basic authentication requests#4140andreisas06 wants to merge 31 commits intoflutter:mainfrom
Conversation
9f79b3b to
38311df
Compare
|
@bparrishMines should I proceed with the PR containing only the platform interface package? |
bparrishMines
left a comment
There was a problem hiding this comment.
This also needs an implementation for webview_flutter_wkwebview. Using https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview?language=objc I believe.
There was a problem hiding this comment.
nit:
| /// Signature for callbacks that report basic auth events by the native web view | |
| /// Signature for callbacks that report basic auth events by the native web view. |
There was a problem hiding this comment.
nit:
| /// Sets the auth credentials for basic authentication and can be used on onReceiveHttpAuthRequest with NavigationDelegate. | |
| /// Sets the auth credentials for basic authentication and can be used with | |
| /// [PlatformNavigationDelegate.onReceiveHttpAuthRequest]. |
There was a problem hiding this comment.
The FlutterAPI should pass back the HttpAuthHandler instead of adding a setAuthCredentials method. Mainly because the HttpAuthHandler has multiple methods that could be used. e.g. cancel and useHttpAuthUsernamePassword.
|
Hey @bparrishMines , @JeroenWeener will be taking over for the IOS implementation of this PR. |
38311df to
3fb8d80
Compare
There was a problem hiding this comment.
When there is an error, don't we also need to call completionHandler in production?
|
Thank @stuartmorgan and @bparrishMines for merging the related PRs. The final PR that exposes the iOS and Android implementations can be found here: #5727. @andreisas06 could you close this PR? |
|
@bparrishMines and @stuartmorgan can this be closed in favor of #5727 (review) and friends? Seems like this is zombied. |
…(iOS) (#5455) Adds the iOS implementation for basic http authentication. This PR is part of a series of PRs that aim to close flutter/flutter#83556. The PR that contains all changes can be found at flutter/packages#4140.
Description
This pull request introduces the handling of HTTP Basic Authentication in our WebView implementation. Specifically, it includes the following changes:
Issues fixed by PR:
Closes flutter/flutter#83556
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].CHANGELOG.mdto add a description of the change, [following repository CHANGELOG style].///).