Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Authentication with Azure Mobile Apps

I'm using the new Azure Mobile Apps (not the old Mobile Services) as backend for my Xamarin-App. Mobile Apps comes with a bunch of Social Authentication Options (e.g. Twitter, Facebook...), but I want my own authentication with my own account table.

For the old mobile services custom auth is described here: http://azure.microsoft.com/de-de/documentation/articles/mobile-services-dotnet-backend-get-started-custom-authentication/ This approach uses a LoginProvider, which isn't available anymore in Mobile Apps. The documentation for migrating from Mobile Services to Mobile Apps just says:

One of the biggest differences between Mobile Apps and Mobile Services is that login is handled by the App Service Gateway in the case of Mobile Apps, not the code site. http://azure.microsoft.com/de-de/documentation/articles/app-service-mobile-dotnet-backend-migrating-from-mobile-services-preview/

What does that mean? How can I implement custom auth?

Thanks :)

like image 360
Paratron Avatar asked May 12 '15 20:05

Paratron


People also ask

How do I add authentication to Azure Web App?

In the Azure portal menu, select Resource groups, or search for and select Resource groups from any page. In Resource groups, find and select your resource group. In Overview, select your app's management page. On your app's left menu, select Authentication, and then click Add identity provider.

How does Microsoft Azure App Service get their credentials?

In the Azure portal, you must have at least one app before you can access the deployment credentials page. To configure your user-scope credentials: From the left menu of your app, select > Deployment center > FTPS credentials or Local Git/FTPS credentials.


2 Answers

Here is a update from azure team There is, currently as a preview for ASP.NET - you can use the Microsoft.Azure.Mobile.Server.Login NuGet package to do this for now. More about that here: https://azure.microsoft.com/en-us/blog/azure-mobile-apps-november-2015-update/

like image 195
Bo HU Avatar answered Oct 17 '22 05:10

Bo HU


Custom authentication is currently not available in Mobile Apps, see comment from azure app service documentation

It should become available when Mobile Apps is Generally Available (GA). I have the same login requirements and had to use Mobile Services for now.

like image 40
William Ku Avatar answered Oct 17 '22 04:10

William Ku