-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[webview_flutter] Support for handling basic authentication requests #4140
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
Changes from 1 commit
517e9d4
967879b
c8624c0
4f3574d
1e7f785
131bc56
bc01be4
67aa00e
32496d0
aeb8708
fffc4c7
b455040
2aa9bfe
db286ba
467feb3
dad8ae6
6f3d802
0fef591
b2a4fbb
ce35d9b
fc32898
4673e65
580521a
d1f305b
a3f74be
ed3798f
154c1f8
3c61dbc
7cf0d7e
a21f29a
8f7603a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,7 @@ | |
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| import 'package:meta/meta.dart'; | ||
|
|
||
| import 'package:flutter/foundation.dart'; | ||
| import '../../webview_flutter_platform_interface.dart'; | ||
|
|
||
| /// Defines the parameters of a pending HTTP authentication request received by | ||
|
|
@@ -51,17 +50,15 @@ import '../../webview_flutter_platform_interface.dart'; | |
| class HttpAuthRequest { | ||
| /// Creates a [HttpAuthRequest]. | ||
| const HttpAuthRequest({ | ||
| required this.onProceed, | ||
| required this.onCancel, | ||
| required this.onAuthenticate, | ||
| required this.host, | ||
| this.realm, | ||
| }); | ||
|
|
||
| /// The callback to authenticate. | ||
| final void Function(WebViewCredential credential) onProceed; | ||
|
|
||
| /// The callback to cancel authentication. | ||
| final void Function() onCancel; | ||
| /// The callback to proceed with, or cancel an auth request. | ||
| /// | ||
| /// If `credential` is `null`, the request will be canceled. | ||
| final void Function(WebViewCredential? credential) onAuthenticate; | ||
|
||
|
|
||
| /// The host requiring authentication. | ||
| final String host; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.