What to use for Xamarin app for Authentication in 2021

phil ciraolo 86 Reputation points
2021-08-22T01:12:40.007+00:00

Looking for the best way to implement login authentication for an Xamarin forms app, web API, web service/website and cosmos db (tokens). Same user id and password to be used for all services/apps. A typical use case would be a user will download the Xamarin app which will ask for a user name and password. Once provided the user's Xamarin app will be able to authenticate to a cosmos db and also the web API. The user will also be able to login to the website/service with the same credentials. The user should be able to login with multiple instances of the same Xamarin app (different devices) and red/write to the cosmos db as well as the api.

My initial thoughts are:

  1. Use ASP.NET Core Web App for the Website (Authentication -Microsoft Identity Platform?)
  2. ASP.NET Core Web API for the API (Authentication -Microsoft Identity Platform?)
  3. Azure Cosmos DB (Authentication - add ResourceTokenBroker to api above?)

would Azure Active Directory B2C (Azure AD B2C) fit into any of this?

Any comments, suggestions or recommendations?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,852 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,435 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful