So first I have to collect the needed tenant information. So this is different in contrast when creating an ASP.NET Web Application (.NET Framework – Web Forms or MVC) as shown in my following post.Ĭreate an ASP.NET Web Application (.NET Framework – Web Forms or MVC) using Azure AD Authenticationįor the ASP.NET Core Web App we have to configure by hand the tenant data in our web app and we also have to register by hand the web app in Azure AD – Enterprise applications. Here we can see that we first need to configure the identity settings from our Azure AD tenant in order to authenticate against it successfully. Visual Studio will create the project and opens the appsettings.json file automatically. The configuration in Azure is also the same for both types of web apps.įor the Authentication Type we need to select the Microsoft identity platform. With both templates, you just simply need to configure/adjust the appsettings.json file on part of your web app. You can also use the ASP.NET Core Web App (Model-View-Controller) template, there will be no differences regarding authentication against Azure AD. Now let’s create an ASP.NET Core Web App to authenticate against your Azure AD. In this post you will see how to authenticate against Azure AD using an ASP.NET web application (.NET Framework – Web Forms or MVC).Ī few weeks ago, I also wrote a post with multiple parts about the Active Directory Federation Services (ADFS) and how to authenticate users in ASP.NET web applications against it beginning with Part 4. In this post I want to show, how you can create a claim aware ASP.NET Core Web App with C# in Visual Studio, in order to authenticate users against Azure AD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |