Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Native Google and Facebook login flow

$
0
0

I want to use the native Facebook and Google OAuth2 authentication processes within my Xamarin.Forms app on Android, iOS and Windows Phone.

There is Xamarin.Auth, but:
- From what I can tell (I haven't invested time implementing it yet because I wasn't sure if it was the right path), the Xamarin.Auth component does not use the native SDKs
- It is not available for Windows Phone.

There is this great article for using Xamarin.Auth with Xamarin.Forms:
http://www.joesauve.com/using-xamarin-auth-with-xamarin-forms/

But again, this uses Xamarin.Auth and according to this Visual Studio magazine article "StartActivity(auth.GetUI(this)) will start the login process. The authenticator object's GetUI method provides the UI, which is an Activity that loads the Web interface for logging into Facebook.".

Does Xamarin.Auth now use the native SDKs for Facebook and Google authentication, or does it still use a web view?

I have also read on various posts in here about iOS apps being rejected for using a web view to authenticate Facebook etc.

There must by now be someone who has used the native SDKs to authenticate Facebook and Google on a Xamarin.Forms app.

The last resort is to wrap up all the information from the following articles into a Xamarin.Forms solution by myself:

Google
Android
https://developers.google.com/android/guides/api-client
https://developers.google.com/+/mobile/android/getting-started
https://developers.google.com/+/mobile/android/sign-in
iOS
https://developers.google.com/+/mobile/ios/getting-started
https://developers.google.com/+/mobile/ios/sign-in
Windows Phone
https://www.nuget.org/packages/Google.Apis/
Or
https://developers.google.com/+/web/

Facebook
Android
https://components.xamarin.com/view/facebook-sdk
https://developers.facebook.com/docs/facebook-login/android
iOS
https://components.xamarin.com/view/facebook-sdk
https://developers.facebook.com/docs/facebook-login/ios
Windows Phone
(Uses web interface)
https://developers.facebook.com/docs/facebook-login/login-for-windows-phone

Before I do this, am I missing something really useful somewhere? Otherwise would anybody be interested in helping me set up an open source, fully cross platform, Xamarin.Forms social library?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>