Last post Mar 01, 2019 01:27 AM by Gary Liu - MSFT
Feb 23, 2019 10:52 PM|Roberto1001|LINK
I have an MVC5 website app deployed as an Azure cloud service.
Using Owin for a Facebook login flow. All the latest Nuget packages (4.0.1 other than Identity.Owin 2.2.2 and Owin (startup components) 1.0). The app uses Owin cookie authentication (traditional logins work fine).
Testing using Chrome on Windows 10, the production server GetExternalLoginInfoAsync is returning null in the callback from signin-facebook.
- It works fine testing on localhost (both debug and release).
- On the Facebook end, everything looks normal and the app is added to the user's list of apps, with all the permissions. It's not a facebook rejection.
Looking at DevTools in Chrome:
- Cache control looks normal for everything, all no-cache.
- The .AspNet.Correlation.Facebook cookie is set and is being returned (same value) to the signin-facebook endpoint on completion from Facebook. Note that there is no other Owin related cookie.
And yet... the big null. Guys & Gals I am running out of ideas. Owin is a black box.. is there any way to get diagnostics or an error code? Everything seems to be lined up correctly, and yet... null. Most mystifying is that everything works great on localhost.
Any ideas are greatly appreciated!
Feb 26, 2019 01:36 AM|Gary Liu - MSFT|LINK
For confirmation, do you deploy your application on a VM on Azure, or on Azure Web Apps? And could you please briefly introduce how you deploy your application to Azure?
Feb 26, 2019 04:58 PM|Roberto1001|LINK
It is deployed as a cloud service web role on Azure.
Published directly from an Azure cloud service project in Visual Studio (right click..publish).
EDIT: Just to note that the publish is to the Staging slot, and when the web role is warmed up the slots are swapped via the Portal to put it into production.
Feb 28, 2019 05:58 PM|Roberto1001|LINK
Is this the proper place to raise this issue? Facebook is asking if I have a solution.
Would I get more traction from Microsofties on Stack Overflow?
Mar 01, 2019 01:27 AM|Gary Liu - MSFT|LINK
Yes, Roberto. As our engineers in this forum don't have so much experience on Azure. You can ask your question on Stack Overflow, with related tags such as: azure-cloud-service, azure-vm... AFAIK, there is a Microsft Azure support team on SO.