plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[webview_flutter] Support basic auth requests

Open wwwdata opened this issue 5 years ago • 17 comments
trafficstars

Description

This enables the webview to visit http basic auth protected websites.

Related Issues

Originally, it was attempted to implement this here: https://github.com/flutter/plugins/pull/1283 But the author then decided to split up the features into smaller pull requests. However, the one for auth requests was never opened, only for the other features: https://github.com/flutter/plugins/pull/1389

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • [x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • [x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • [x] All existing and new tests are passing.
  • [x] I updated/added relevant documentation (doc comments with ///).
  • [x] The analyzer (flutter analyze) does not report any problems on my PR.
  • [x] I read and followed the Flutter Style Guide.
  • [x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • [x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • [x] I updated CHANGELOG.md to add a description of the change.
  • [x] I signed the CLA.
  • [x] I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • [ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • [x] No, this is not a breaking change.

wwwdata avatar Dec 15 '19 12:12 wwwdata

Any idea when this feature will be available? Thanks in advance!

FuturistLabs avatar Jan 09 '20 09:01 FuturistLabs

Any idea when this feature will be available? Thanks in advance!

As soon as someone from Google presses the green merge button here... Which unfortunately takes a very long time.

wwwdata avatar Jan 16 '20 16:01 wwwdata

@wwwdata thank you for working on this feature. It seems that its nearing completion, cant wait!

JJibreel avatar Mar 26 '20 17:03 JJibreel

We apologize for the long delay in triaging this PR. We’re in the process of overhauling our PR triage system to respond much more quickly, as well as working through the backlog.

It looks like this should be pretty straightforward to review, and has good test coverage. If you're still interested in moving forward with this, once you've updated this to apply to the current version of the plugin I can review it.

stuartmorgan-g avatar May 25 '21 20:05 stuartmorgan-g

Hi, I will rebase this then and make it up to date when I have time.

wwwdata avatar May 26 '21 06:05 wwwdata

@stuartmorgan ok I just rebased it and fixed all the conflicts.

wwwdata avatar Jun 14 '21 20:06 wwwdata

(FYI the mass of CI failures is from an infrastructure issue we hit; the next time you merge/rebase it'll clear up.)

stuartmorgan-g avatar Jun 29 '21 15:06 stuartmorgan-g

just pushed my changes again. I hope it's ok now. Sorry for the delay I was on vacation

wwwdata avatar Jul 21 '21 20:07 wwwdata

@stuartmorgan is there still something missing in this PR? 🤔️ (except fixing the changelog conflict) thanks.

hpoul avatar Sep 15 '21 09:09 hpoul

@stuartmorgan yes that makes sense. So please go ahead and take over with the splitting and so on. Thank you very much!

wwwdata avatar Oct 18 '21 10:10 wwwdata

Per discussion with @bparrishMines I'm going to hold off on updating this until the in-progress conversion is complete.

stuartmorgan-g avatar Oct 29 '21 19:10 stuartmorgan-g

Is there still a conversion in progress? I guess the original federated plugin changes are done? @stuartmorgan I have seen the iOS implementation has still some refactoring in progress? https://github.com/flutter/plugins/pull/4626 I guess working on this still doesn't make sense while that is still going on? 🤔️

hpoul avatar Jan 10 '22 08:01 hpoul

Is there still a conversion in progress? I guess the original federated plugin changes are done?

This isn't about federation, it's about https://github.com/flutter/flutter/issues/93732 which is still in progress.

stuartmorgan-g avatar Jan 10 '22 17:01 stuartmorgan-g

Triage update: iOS webview conversion is still in progress, so this still blocked for the moment.

stuartmorgan-g avatar Mar 01 '22 16:03 stuartmorgan-g

Latest status is that we're still waiting on https://github.com/flutter/flutter/issues/93732. Before this can land even after that is fixed, the conflicts will need to be resolved.

Hixie avatar May 10 '22 23:05 Hixie

The Dart conversion is complete, but in the meantime we found https://github.com/flutter/flutter/issues/94051 which blocks this, since we currently implement WebViewPlatformCallbacksHandler in our implementations, making changes to it breaking changes. We're actively working on that issue, and hope to have it resolved soon.

stuartmorgan-g avatar Jul 28 '22 20:07 stuartmorgan-g

Status update from triage: this is still blocked, but we hope to have it unblocked soon.

stuartmorgan-g avatar Aug 30 '22 15:08 stuartmorgan-g

This is unblocked now that v4 has landed. @bparrishMines This is one we should look at updating.

stuartmorgan-g avatar Jan 11 '23 19:01 stuartmorgan-g

Update from triage: this is still on our list to update; we're currently working through updating a couple of higher-priority webview features, but we'll get to this soon.

stuartmorgan-g avatar Feb 14 '23 20:02 stuartmorgan-g

We've just completed the migration of the plugin code to the flutter/packages repository, as described in https://flutter.dev/go/flutter-plugins-repo-migration, and this repository is now being archived. Unfortunately that means that all in-progress PRs here must be moved to flutter/packages.

Per discussion above about this PR having fallen through the cracks, either I or @bparrishMines will be opening an updated version of this PR in flutter/packages, so there's no need for any action here. Per my comment above, we expect to get to this fairly soon.

stuartmorgan-g avatar Feb 22 '23 16:02 stuartmorgan-g