managed prog managed prog - 3 months ago 40
ASP.NET (C#) Question

Web app using Azure active directory for Authentication

I am using the below sample code to create a simple web app (I have not incorporated web API yet)
https://github.com/Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect

I was able to debug the application without any errors. But when I deployed the app to Azure, I followed the steps to change the
1) Sign-On URL
2) Reply URL
to the web site address.
Now when I try to access my website it tries to authenticate me and then it just gives me back status code 500.
Any idea what I might be missing here?

Answer

That sample should not require ANY DB. The cache used there is the NaiveTokenCache (see https://github.com/Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect/tree/master/TodoListWebApp/Utils), which uses the Http session. Either you modified the sample to switch the cache, or you are talking about something else (in which case, I recommend specifying the exact bits you are dealing with).