So this has to be a case of me just needing a dope slap:
I've created new test WebAPI applications using Visual Studio (2013 AND 2015) and configured them to use organizational accounts for authentication using the standard project creation dialogs. I've hooked them to both a test Azure Active Directory (AAD) directory on my workplace's azure subscription as well as one in my MSDN azure subscription.
In all cases, when loading the application for the first time, I get an IIS 401.2 response. Okay, fine. I enable anonymous authentication on the project property window. Then when I navigate to a controller that is decorated with the [Authorize] attribute, I get the following:
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>
This occurs both locally as well as in a cloud service web role (with the web role URL added to the application URLs).
I know it has to be something simple. I have to have missed something absolutely idiotic but cannot, for the life of me, figure out what it might be.
Does anyone have any thoughts of why I'm not being redirected to the AAD sign-in page?