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

Desktop support #173

Open
5 tasks done
Sesa1988 opened this issue Oct 16, 2022 · 23 comments
Open
5 tasks done

Desktop support #173

Sesa1988 opened this issue Oct 16, 2022 · 23 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@Sesa1988
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

Desktop support especially with social providers would be awesome, there is currently no package that supports this.

Describe the ideal solution

Everything should work like now but there is probably more work to be done because windows does not support url redirects.
Other packages start a http server and listen for callbacks but they are all specific to a product.

Alternatives and current workarounds

No response

Additional context

No response

@Sesa1988 Sesa1988 added the feature request A feature has been asked for or suggested by the community label Oct 16, 2022
@Widcket
Copy link
Contributor

Widcket commented Oct 17, 2022

Hi @Sesa1988, thanks for raising this.

Is this feature request for Windows support specifically?

@Sesa1988
Copy link
Author

Sesa1988 commented Oct 17, 2022

Hi @Sesa1988, thanks for raising this.

Is this feature request for Windows support specifically?

This was just my preference but web support would be nice as well.

Im looking for a auth package that can be used on all Flutter platforms that support azure ad b2c and similar services.

@Widcket
Copy link
Contributor

Widcket commented Oct 17, 2022

We already have #169 for tracking web support. As mentioned there:

Since Flutter for web supports interop with JS, you could use our SDK for SPAs: https://github.com/auth0/auth0-spa-js/.

Would that work for you?

@Sesa1988
Copy link
Author

We already have #169 for tracking web support. As mentioned there:

Since Flutter for web supports interop with JS, you could use our SDK for SPAs: https://github.com/auth0/auth0-spa-js/.

Would that work for you?

Im not sure how well this plays with Flutter web but Im looking more for desktop support.

@Widcket
Copy link
Contributor

Widcket commented Oct 17, 2022

Thanks. We have no plans in the near term but I'll leave this issue open for future planning and reference.

@sir-dunxalot
Copy link

+1 to providing desktop support or making is clearer in the readme, tutorials, and quickstart that desktop is not supported.

Alternatively, it would be helpful to have a clearer error message. Trying to run auth0-flutter in a MacOS app results in the following error, which is misleading:

MissingPluginException(No implementation found for method webAuth#login on channel auth0.com/auth0_flutter/web_auth)

Thanks!

@stevehobbsdev
Copy link
Contributor

@sir-dunxalot I think that's an error surfaced by the Flutter runtime rather than our plugin.

We're always happy to look at ways to make our support clearer. Currently the package on pub.dev is accurate in that it shows iOS and Android as supported platforms:

image

And we mention supported in the readme for this repo:

image

@keepersmith
Copy link

+1 to providing desktop support.
One of the main reasons to use flutter in the first place is to chase the dream of one codebase for all (relevant) platforms.
Please add desktop (and web) support.
Thanks!

@steve-winter
Copy link

As I see it there are a few options:

Loopback: - potential MiTM risks

  1. Login triggers opening browser
  2. Perform normal login in browser
  3. Run server on loopback address
  4. Browser redirects to a loopback address (e.g. 127.0.0.1:1234)
  5. Close browser
  6. Loopback address broadly follows; https://github.com/auth0/auth0-flutter/blob/main/auth0_flutter/lib/src/web/auth0_flutter_plugin_real.dart
  7. Close loopback server and listen for login in initState.

Embedded Webview

  1. Open login in embedded webview
  2. Listen for relevant redirect and extract values

MacOS only
1. Package redirect (e.g. https://auth0.com/docs/quickstart/native/ios-swift/interactive)

Keen for any feedback re recommended/agreeable direction, and I will begin to put a PR together.

@Xylez01
Copy link

Xylez01 commented Aug 3, 2023

Any updates on this topic? We are currently using https://pub.dev/packages/flutter_appauth (as it was used in previous Auth0 blogs on how to integrate with Auth0 and flutter).

Since then macOS support has been added which we are using quite intensely. Do you have any idea on the timeline for macOS support for this lib? I think ideally we'd like to move over to this lib but no macOS support is blocking us currently.

@raphibolliger
Copy link

For me, it would be also really nice to have Auth0 support on desktop platforms. Any chance that this will be implemented in the near future? Especially macOS should be almost the same as iOS.

@Anish-Chanda
Copy link

+1

@Widcket Widcket mentioned this issue Oct 27, 2023
5 tasks
@Xylez01
Copy link

Xylez01 commented Nov 13, 2023

@Widcket are there any plans currently to support this?

@Widcket
Copy link
Contributor

Widcket commented Nov 13, 2023

Hi @JordyLangen, we are currently working on adding support for macOS, though I can't share a specific ETA yet.

@Xylez01
Copy link

Xylez01 commented Nov 13, 2023

@Widcket thats good to hear! Do you have a time window? This year? Q1 next year?

@Widcket
Copy link
Contributor

Widcket commented Nov 13, 2023

Though this is no ETA, a rough time window would be around end of year.

@Widcket
Copy link
Contributor

Widcket commented Dec 15, 2023

Hey everyone, macOS support is out now on v1.5.0.

@jaipal-sodhi
Copy link

Please provide support for windows as well

@Gaurav-CareMonitor
Copy link

@Widcket Any updates on Windows support? Is this going to be added in the near future?

@avinash-bandgitech
Copy link

Any updates on Windows support?

@TristanGrobler
Copy link

I would also love windows support.

@emal-avala
Copy link

emal-avala commented Jan 17, 2025

@Widcket is there a timeline for Windows support? Thanks in advance!

@Widcket
Copy link
Contributor

Widcket commented Jan 21, 2025

Hi @emal-avala, there are no current plans for Windows support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests