Posts

Showing posts from May, 2025

ASP.NET MVC , Azure AD integration using open id connect

  ASP.NET MVC , Azure AD integration using open id connect To integrate Azure Active Directory (Azure AD) with an ASP.NET MVC application using OpenID Connect , you can follow these core steps:   ✅ Prerequisites ·        Azure AD tenant and App Registration (client ID and tenant ID) ·        Visual Studio ·        ASP.NET MVC (.NET Framework, not .NET Core)   🔧 Step 1: Register Your App in Azure AD 1.        Go to Azure Portal 2.        Navigate to Azure Active Directory > App registrations 3.        Click New registration a.   Name: MyMvcApp b.        Redirect URI: https://localhost:44300/signin-oidc (or your app’s URL + /signin-oidc ) 4.        Once created, note down: a.    ...