Hello,
I’m writing here because I’ve been researching for two days now and I’m still not sure what technology to use to achieve what I need.
I have the following setup:

Mobile app: Xamarin forms Android/iOS app, which consumes data from my ASP.NET backend
Backend: ASP.NET Core 3 API which provides data for the app (and probably web site in the future) and a SQL Server DB which stores the app data. I already have an user account class(pretty much just an ID) which I’m using in all kinds of relationships with other objects in my business logic layer.
What I need is
-Authentication/Authorization on the app side. It should include custom authentication (via email/username and password) and authentication via external providers, e.g. Google, Facebook, Apple etc.
-Preferrably not have to manage user credentials at all
-Use the user identity provided by the app to acess my backend API – require Authorization/Authentication to specific endpoints (e.g. which contain sensitive data)
-I want to be able to integrate the identity of the users with my already existing user objects
So far I’ve looked into Auth0, Xamarin.Essentials, Firebase and Okta but I can’t really get how to integrate them in my existing app. If someone could help me out with the complete workflow and some minimum basic example that would be great!
Not xamarin specific but you could go for the tried and true method of using jwt tokens as your authentication on the server, this could be implemented either using oauth or the way I normally do it is by creating a standard user’s table that uses either blake2 (easier to implement but slower) or libsodium for password hashing, then sent on authorization send out a valid token to the client to use on all future requests.
In net core you can use the jwt Middleware to allow the use of the [Authorize] attribute to validate the tokens for any controllers or endpoints you want to lock down

Okay, thanks that sounds reasonable. But how would I go about implementing the social media logins?
C# devs
null reference exceptions

source