Right after authenticating for my web app with Azure Active Directory B2C, I get the following error message:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
This error message comes up after successfully authenticating through the "Sign In", "Sign Up", and the new "Sign Up or Sign In" policies. I have two identical websites, one hosted by Azure through their "App Services", and the other hosted in IBM Bluemix. The Bluemix-hosted website authenticates fine without errors, but the Azure-hosted version is the one giving me the error.
I have also created a troubleshooting webpage so I can troubleshoot and narrow down the source of the problem. As soon as I add the Application Claim "User's Object ID", and only that claim, I get the error. The problem is, I need that claim, among others, for authenticating purposes, so I can't just simply remove that claim.
The troubleshooting webpage is here:
https://troubleshootb2c2.azurewebsites.net/
In that webpage, just click on "Log in" at the top-right corner, and you will be taken to an authentication page using the "Sign Up or Sign In" policy. Once you sign in or sign up, it will redirect to a valid URL (https://troubleshootb2c2.azurewebsites.net/auth) and show the error message in the form of a webpage.
My code can be found here, if the problem lies within my code: