step-up-labs / firebase-authentication-dotnet

C# library for Firebase Authentication
MIT License
376 stars 129 forks source link

[.NET MAUI] How implement "OpenBrowserAndWaitForRedirectToAuthDomain" #208

Open eliasribeiro opened 10 months ago

eliasribeiro commented 10 months ago

How to implement the method in "OpenBrowserAndWaitForRedirectToAuthDomain" in .NET MAUI?

Because the Launcher and Browser classes only open the browser and do not have resources to monitor the situation and obtain any positive or negative response from the Browser Login.

With WebView I was also unable to be successful, as at the end of Login it returns the message "Unable to process the request due to lack of initial state. This can happen if the browser's sessionStorage is inaccessible or accidentally deleted." I don't know how to resolve this message or how to wait for the success/failure process to then return a value in the SignInRedirectDelegate of SignInWithRedirectAsync.

Unfortunately we also don't have any example projects with this implementation for .NET MAUI.

bezysoftware commented 10 months ago

I don't really know Maui, but maybe try this? https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/authentication?tabs=android

eliasribeiro commented 10 months ago

Microsoft's authentication solution requires ASP.NET application hosting and does not work for Firebase.

osyyyS commented 1 month ago

@eliasribeiro Hi, did you find a solution by any chance?