question

AdrianN-4768 avatar image
0 Votes"
AdrianN-4768 asked SeanFang-MSFT edited

Identity/Authentication between ASP.Net MVC and Xamarin.Forms

Hi All,

Just wondering if anyone has information on the best way to integrate Identity/Authentication ASP.NET MVC and Xamarin.
I've created a standard ASP.NET Core application using the latest framework with Individual Accounts, I would like to create a Xamarin.Forms application that uses the same database, and be able to manipulate this data as well for registering and sign in.

I can't seem to find any tutorials or documentation about this other than implementing an ASP.NET Web API application with Xamarin. So I'm left wondering if I should convert my MVC App into a .NET Framework with Web API, so I can just follow the tutorials directly.

Thanks in advance!

dotnet-xamarindotnet-aspnet-core-mvc
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AdrianN-4768 , what do you mean to integrate mvc and Xamarin? Could you please share the detailed scenario?

0 Votes 0 ·

Hi @RenaNi-MSFT

I have a ASP.NET Core MVC app that allows users to book a training session.
I would also like to create a Xamarin Forms application that does the same thing however, I'm not 100% sure on how I can use the same Authentication Flow for both platforms.

ASP.NET uses Identity manager, and I can't seem to find an equivalent for Xamarin Form, that way I can just use the same database to authenticate the users.

Thanks for the reply!

0 Votes 0 ·

You can have a AaP.NET MVC and a ASP.NET Blazor client-side project client-side means the Blazor client-side project is a Windows desktop solution running on the local machine and both can use ASP.NET WebAPI that is using ASP.NET Identity.

II don't think there is any canned solution for a Windows desktop solution other than Blazor client-side that can do what you're talking about on the Windows desktop concerning using ASP.NET Identity.

https://chrissainty.com/securing-your-blazor-apps-authentication-with-clientside-blazor-using-webapi-aspnet-core-identity/

0 Votes 0 ·

0 Answers