0
votes

We are developing an azure mobile services application and are having some difficulty with authentication.

The X-ZUMO-AUTH and X-ZUMO-APPLICATION HTTP headers are being sent from the client to the server correctly, yet on the server HttpContext.Current.User.Identity.IsAuthenticated remains false.

The server is a MVC/Web API ASP.NET application.

Is there some sort of configuration we could be missing to get this working?

1

1 Answers

1
votes

Undoubtedly you are missing something. I hope you mean Azure Mobile Apps (and not Azure Mobile Services).

You need to integrate the Azure Mobile Apps SDK on the server side, and turn on and configure Azure App Service Authentication & Authorization. In addition, if it's a straight MVC app, you will need to add the OWin initializer to your Startup.cs file.

Check out Chapter 6 of http://aka.ms/zumobook