Best option for social media logins?

Stesvis 1,041 Reputation points

I need to implement social login for my app, facebook, twitter, google etc.
What is the best option?

So far I was considering:

I have a aspnet.core backend which i have full control of.

The CrossGeeks plugins seem very easy to use, but I am not sure they are totally still maintained or not.

Which one is the recommended way these days? And if you know, what are the pros and cons of each? Thanks!

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,015 questions
0 comments No comments
{count} votes

Accepted answer
  1. JessieZhang-MSFT 7,531 Reputation points Microsoft Vendor


    Welcome to our Microsoft Q&A platform!

    Many apps require adding user authentication. This often means enabling users to sign into existing Microsoft, Facebook, Google, and (now) Apple Sign-In accounts.

    Microsoft Authentication Library (MSAL) provides an excellent turn-key solution to adding authentication to your app. Additionally, there is even support for Xamarin apps in their client NuGet package.

    If you're interested in using your own web service for authentication, it's possible to use WebAuthenticator to implement the client side functionality.

    Many authentication providers have moved to only offering explicit or two-legged authentication flows to ensure better security. This means you'll need a 'client secret' from the provider to complete the authentication flow. Unfortunately, mobile apps are not a great place to store secrets and anything stored in a mobile app's code, binaries, or otherwise is generally considered to be insecure.

    The best practice here is to use a web backend as a middle layer between your mobile app and the authentication provider.

    Just as the official document Xamarin.Essentials: Web Authenticator mentioned:

    So, if you are looking for a way to easily integrate Xamarin social authentication into a new or existing ASP.NET (or other) web app, Xamarin.Essentials Web Authenticator is what you want.

    For more details, you can check documents:

    Best Regards,

    Jessie Zhang

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful