TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

Ability to auth with Microsoft & Yahoo #197

Open mcalpinekeith opened 1 year ago

mcalpinekeith commented 1 year ago

I was blown away at how easy it is to sign in with Google using Plugin.Firebase. Are there any plans to sign in with Microsoft and Yahoo as provider? Or is there a way to create the add-on myself?

TobiasBuchholz commented 1 year ago

Since you can choose both Microsoft and Yahoo as identity provider in the auth section of the firebase console it should be possible to create such add-ons. You can take a look at the firebase auth documentation and the following code sections to get an impression how this could work:

iOS:

https://github.com/TobiasBuchholz/Plugin.Firebase/blob/d32f3c12c3264ae599e9065dd82ea7641e0e6f98/src/Auth/Platforms/iOS/FirebaseAuthImplementation.cs#L131 https://github.com/TobiasBuchholz/Plugin.Firebase/blob/d32f3c12c3264ae599e9065dd82ea7641e0e6f98/src/Auth/Platforms/iOS/Google/GoogleAuth.cs#L8

Android:

https://github.com/TobiasBuchholz/Plugin.Firebase/blob/d32f3c12c3264ae599e9065dd82ea7641e0e6f98/src/Auth/Platforms/Android/FirebaseAuthImplementation.cs#L128 https://github.com/TobiasBuchholz/Plugin.Firebase/blob/d32f3c12c3264ae599e9065dd82ea7641e0e6f98/src/Auth/Platforms/Android/Google/GoogleAuth.cs#L12

A PR would be very welcome :)