auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
59 stars 39 forks source link

Could it be possible to use this package as InAppWebview #301

Closed ahmet-fennel closed 1 year ago

ahmet-fennel commented 1 year ago

Checklist

Describe the problem you'd like to have solved

Currently, when invoking the authentication process, a pop-up opens in an external browser window. This behavior is not ideal for our user experience, even when useEphemeralSession: true is set. We're wondering the possibility of integrating the InAppWebview package with the auth0-flutter library to enhance the user experience.

Describe the ideal solution

Ideally, invokingwebAuthentication().login() should direct users to an in-app page powered by InAppWebView. This would ensure that users remain within the app environment throughout the authentication process, providing a more seamless and integrated experience.

If there are technical constraints preventing this integration, we would greatly appreciate insights into those challenges. Such information would be invaluable in helping us understand and potentially seek alternative solutions.

Thank you for considering our feedback.

Alternatives and current workarounds

No response

Additional context

No response

Widcket commented 1 year ago

Hi @ahmet-fennel,

Our mobile SDKs do not support in-app webviews. The current best practice for authorizing users on mobile apps requires using an external user-agent (that is, a browser).

Screenshot 2023-08-17 at 9 28 30 PM

See https://auth0.com/blog/oauth-2-best-practices-for-native-apps/.

As such, this is something we won't add support for.