I’m using MSAL(Microsoft authentication library ) in my apps. I think it well be fit well in your situation.
For more details about MSAL: https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-overview
What to use for Xamarin app for Authentication in 2021
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:
- Use ASP.NET Core Web App for the Website (Authentication -Microsoft Identity Platform?)
- ASP.NET Core Web API for the API (Authentication -Microsoft Identity Platform?)
- 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?
-
MohamedAbofanas 91 Reputation points
2021-08-22T15:26:20.487+00:00