Hello,
I’m trying to implement Auth0 authentication in a Flutter desktop application on Linux. I’m using the native web authentication method, which seems to be the standard approach for the SDK, but I’m encountering an error that prevents the login from working.
The code I’m using:
final Credentials credentials = await auth0 .webAuthentication() .login( parameters: {'connection': 'XXXXXXXXXXX'}, );
The error message:
Login failed: MissingPluginException(No implementation found for method webAuth#login on channel ``auth0.com/auth0_flutter/web_auth``)
The problem
Is there anything I can do to fix this, since I’m using Linux?
Thank you for your help.
Hi @bennovasconcellos
Welcome to the Auth0 Community!
I have been searching around for more information that could help with the issue, and I have been able to find the following:
Let me know if these documentations have help clearing the issue, or if you are still experiencing it.
Hope this helped!
Gerald
1 Like
Hello again,
Thank you very much for your research and for sharing these resources. I actually ended up finding [this issue #173
].(SCHEMA://github.com/auth0/auth0-flutter/issues/173), which clarifies that there is no support for desktop (Windows/Linux), only for macOS. The documentation is somewhat misleading as it mentions “mobile/desktop,” as you can also see in the comments.
I have opened a related issue [Docs: "Mobile/Desktop" wording is misleading (should be Mobile/macOS)
].(SCHEMA://github.com/auth0/auth0-flutter/issues/655). I am unsure whether it should be closed or left open—leaving it open could help other developers, although macOS support, while technically desktop, is not a standard enterprise solution (given Windows for end users and Linux for servers).
I tried running the example, but the same issue persists because the functionality is simply not implemented. I will study whether an in-app approach is feasible; otherwise, I plan to follow one of the suggested solutions in the comments by [steve-winter
].(SCHEMA://github.com/auth0/auth0-flutter/issues/173#issuecomment-1629007441).
P.S.: I can’t include links, so I’m swapping https
for SCHEMA
. All links point to GitHub.
Thank you again for your time and effort.
Kind Regards,
Benno Vasconcellos