Configure an ASP.NET Core 8 application to work with ADFS 2022
Let's create an ASP.NET Core 8 app to use Active Directory Federation Services for authentication and authorization. The .NET code will use OAuth 2.0 and OpenID Connect to communicate with ADFS, and we'll create an ADFS application group for the configuration. Start by opening up Visual Studio 2022 and creating a new project. You can use the free community edition to do this. For the project type, choose ASP.NET Core Web App (Razor Pages) Give your project a name On the Additional Information screen, leave the Framework as .NET 8.0. And leave the Authentication type as "None". We're going to…