From what I understand you create an Razor Pages app in Visual Studio 2019 by doing New Project > ASP.NET Core Web Application > [provide app name] > Web Application
The following tutorial shows how to add Azure Active Directory authentication to a MVC app. I got the sample MVC app to work.
I replicated all necessary code from this tutorial into a Razor Pages app (Program.cs and Startup.cs), but I don't get any authentication prompt. Does that mean Razor Pages are not supported? Or am I doing something wrong?
https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-core-webapp