Azure-Samples / active-directory-dotnet-windows-store

A Windows Store 8.1 or Windows 10 (UWP) application that uses Azure AD and the ADAL library to authenticate the user and call a web API using OAuth 2.0 access tokens.
16 stars 12 forks source link

HTTP 401 Unauthorized after deploying to Azure #19

Closed mormond closed 8 years ago

mormond commented 8 years ago

The sample works fine on my local machine but after deploying to Azure I always receive a 401 unauthorized on any call to the TodoListService.

mormond commented 8 years ago

When publishing to Azure, make sure the "Enable Organizational Authentication" checkbox is unchecked in the Publish Web wizard settings, as per step 7 of the "Deploying this site to Azure" instructions in the readme.

snip_20160118205614

Hat tip to Danny Strockis for helping me identify what I was doing wrong.