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

Support In-App WebView #5

Open
Joseph-Nathan opened this issue Aug 27, 2022 · 7 comments
Open

Support In-App WebView #5

Joseph-Nathan opened this issue Aug 27, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@Joseph-Nathan
Copy link

Describe the bug

Firebase BackEnd does n't support external callable method

To Reproduce

Steps to reproduce the behavior:

  1. Create FireBase project
  2. provide any Auth Provider as Google
  3. try to Authentication with external browser tab
  4. See Error :
    Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared.

Expected behavior

After Authentication , callable method fire and get back to App .

Screenshots

103522266-1f317180-4ea0-11eb-808f-50539f604b01

Device (please complete the following information!)

  • Device: [ OPPO F11 ]
  • OS: [Andriod 12]
  • Browser: [Chrome]
  • flutter_web_auth version: [e.g. 0.4.1]

Additional context

if add support to in_App_Webview that will be great

@Joseph-Nathan Joseph-Nathan added the bug Something isn't working label Aug 27, 2022
@AndreiRoze
Copy link

AndreiRoze commented Aug 29, 2022

Shortly, it's not library issue. Look like it's incorrect behaviour of Firebase for some phones/browsers. More info here firebase/firebase-js-sdk#4256

@Joseph-Nathan
Copy link
Author

@AndreiRoze we know , can you provide any way to pass this .

@AndreiRoze
Copy link

@Joseph-Nathan, you can try to use redirect to your server and from your server redirect to app by package name, but i am not sure, may be it useless.

@ThexXTURBOXx
Copy link
Owner

The issue may be related to Firebase, but the feature request with the In-App web view is a nice idea. So I let this open for now

@ThexXTURBOXx ThexXTURBOXx changed the title external tab does n't back to APP when used with Firebase BackEnd ? Support In-App WebView Sep 2, 2022
@ThexXTURBOXx ThexXTURBOXx added enhancement New feature or request and removed bug Something isn't working labels Sep 2, 2022
@komaxx
Copy link

komaxx commented Sep 7, 2022

Wouldn't a In-App web view pretty much defeat the whole point of OAuth?

As far as I understand, running some sort of WebView in the caller's process also enables accessing everything that's entered into the login page (by adding JavaScript hooks, or DOM scraping, or piping interaction through an invisible overlay view, or ...), thus exposing user credentials to the calling app.

At that point there would be no security gain over just letting the user enter her credentials directly into the app, right?

@ThexXTURBOXx
Copy link
Owner

Yes, that is the reason why I recently decided against it. However, I am still thinking about other ways to provide the callback process

@Joseph-Nathan
Copy link
Author

any news for provide callback process to Firebase ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants