firebase-authentication-dotnet icon indicating copy to clipboard operation
firebase-authentication-dotnet copied to clipboard

Firebase UI (WPF + UWP + Xamarin)

Open bezysoftware opened this issue 5 years ago • 10 comments

I started rewriting the FirebaseAuthentication.net library from scratch. I noticed that the payloads that the current version (v3) sends out are not the same as the Javascript version of the library and I wanted to unify it, possibly adding other providers along the way ( phone, apple, microsoft, etc.). It actually makes the whole flow significantly easier to use, because the API gives you the OAuth url to navigate the user to, and also automatically process the redirect uri at the end of the flow. This means you don't have to manually (or via extra package) communicate with Facebook and others to get the access_token to give to Firebase.

With this simplified flow it also started to make sense to build a UI on top of it - just like the official Firebase UI - that you could just drop to your design surface and it would handle everything for you. I currently have a working prototype for WPF, but I plan to to write a version for UWP and Xamarin as well.

The code currently lives in v4 branch, but feel free to check it out and comment on the API.

image

As you can see from the screenshot, it now supports 6 providers + anonymous, localization (35+ languages taken from Firebase repo) and native email flow. It is still missing some key pieces (e.g. credentials persistence is currently in-memory only) but it is usable for demo.

Please, let me know your thoughts, ideas, comments... in this issue

bezysoftware avatar Dec 20 '19 14:12 bezysoftware

Thank you for this - looking forward to FirebaseUI for Xamarin. Do you plan on including support for Xamarin Native as well? (Xamarin.Android and Xamarin.iOS without .Forms)

According to this it sounds like Xamarin.Forms will be a dependency:

FirebaseAuthentication.Xamarin targets Xamarin.Forms

bronquit avatar Jan 23 '20 18:01 bronquit

Yes, that's the plan currently. But maybe there is a way to write it for Android and iOS separately and have it also work in a Forms app? I'll evaluate after I finish uwp version

bezysoftware avatar Jan 29 '20 18:01 bezysoftware

This looks amazing. Just now saw this issue. How's it coming along, since the original post?

cabauman avatar Apr 26 '20 09:04 cabauman

The UWP and WPF platforms are pretty much ready and can be used, but I haven't yet started Xamarin, too busy at work 😔

bezysoftware avatar May 01 '20 14:05 bezysoftware

I understand. Let me know if there's anything I can do to help.

cabauman avatar May 01 '20 15:05 cabauman

I'm using 4.0.0-alpha.2 and the AuthStateChanged event isn't triggering after I sign in using email without any errors or exceptions.

trevorm7 avatar May 22 '20 01:05 trevorm7

what a great idea! I know it's very nice, let's see if it's ready for xamarin ...

angelru avatar May 27 '20 08:05 angelru

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 23 '20 19:11 stale[bot]

is this project still working ? cant find the UI for wpf :(

MO35AB avatar Dec 20 '20 18:12 MO35AB

I haven't had time in the last months to spend on this project but the WPF version is here: https://www.nuget.org/packages/FirebaseAuthentication.wpf/

bezysoftware avatar Dec 22 '20 20:12 bezysoftware

Released

bezysoftware avatar Jan 04 '23 12:01 bezysoftware