managed prog managed prog - 1 year ago 148
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)

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 Source

That sample should not require ANY DB. The cache used there is the NaiveTokenCache (see, 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).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download