Azure AD with SSO for .NET Core API & Angular | Complete Guide to Authentication & Integration

  Рет қаралды 352

Learn Smart Coding

Learn Smart Coding

Күн бұрын

In this video, we provide a complete guide to integrating Azure Active Directory (Azure AD) with Single Sign-On (SSO) in a .NET Core Web API and Angular application. This step-by-step tutorial will walk you through the process of securing your web apps using Azure AD, enabling seamless authentication and SSO across multiple apps.
We cover the following key topics:
Overview of Azure AD and its role as an identity provider.
Setting up Azure AD for user authentication in a .NET Core API.
How to implement Single Sign-On (SSO) across two Angular apps using the same Azure AD tenant.
MSAL.js for token acquisition and secure access.
Managing user sessions with Azure AD and how SSO works in multi-app environments.
Testing and debugging the integration locally for seamless development.
Whether you're a beginner or looking to level up your knowledge on Azure AD and SSO integration, this video provides a comprehensive guide to understanding and implementing identity management in your applications.
🔗 GitHub Repo: github.com/lea...
Please post your questions in the comment section and I will be happy to answer your questions.
Subscribe for more useful videos just like this: / @learnsmartcoding
Happy coding!

Пікірлер: 8
@subashraj3919
@subashraj3919 5 күн бұрын
Thanks bro. It was good Learning
@ayushgupta5702
@ayushgupta5702 5 күн бұрын
Thanks for the video. It is really great. I am facing one issue as I am using enterprise application to implement SSO so in that case also it should be mandatory to have app registration. As I am facing CORS error when sending the request in the browser but when I am pasting the SAML request in the other tab it is working correctly.
@learnsmartcoding
@learnsmartcoding 5 күн бұрын
Hi Ayush, Thank you so much for the kind words! I'm glad you found the video helpful. Regarding your issue, when you're using an enterprise application for SSO, it's still necessary to have app registration in Azure AD, even if you're using a pre-configured enterprise app. App registration ensures that your application is properly configured to work with Azure AD, including setting up redirect URIs and permissions. As for the CORS error, this typically happens because Azure AD and the browser security policies prevent cross-origin requests when proper configurations aren’t in place. Here are a few things you can check: App Registration: Ensure that your redirect URIs and CORS settings are configured correctly in the Azure portal for the app registration. CORS in API: Make sure that CORS is enabled in your backend API to allow requests from your frontend app's domain. You may need to whitelist specific origins in your API. SAML Request in Browser: When you're manually pasting the SAML request, it works because the browser isn't blocking it like in a programmatic request, hence why it bypasses the CORS policies. Let me know if this helps, and feel free to share more details if the issue persists!
@ayushgupta5702
@ayushgupta5702 2 күн бұрын
@@learnsmartcoding Thanks for your humble reply. In my case there is one thing that my SSO Login will be based on the user's setting that wether the user has sso enabled or not and this will be checked when user will enter thier username and on behalf of it we initiate the SSO login otherwise move to next page for entering password. So for that I have to initiate the SSO login from Controller level based on the scenario required. Can you help me with that?
@ayushgupta5702
@ayushgupta5702 2 күн бұрын
@learnsmartcoding like what should be settings for backend and front end in this case or they will be same like only have to do app registration and registration of enterprise application
@ayushgupta5702
@ayushgupta5702 2 күн бұрын
@@learnsmartcoding Also it is mandatory to add scopes since we are using currently JWT authentication and will be adding SSO login to the application
@ayushgupta5702
@ayushgupta5702 19 сағат бұрын
​@@learnsmartcoding Please reply. Can we connect?
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,3 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
So Cute 🥰
00:17
dednahype
Рет қаралды 54 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 39 МЛН
What is Entra ID, Entra Domain Services, and Windows AD?
8:44
Travis Roberts
Рет қаралды 16 М.
Learn Conditional Access in just 25 Mins
25:47
Andy Malone MVP
Рет қаралды 31 М.
MSAL Azure AD Authentication with React
36:15
Deep Dive Dotnet
Рет қаралды 38 М.
Azure AD App Registrations, Enterprise Apps and Service Principals
33:44
John Savill's Technical Training
Рет қаралды 223 М.
What's Next for ASP.NET Core & Blazor
1:15:10
dotnet
Рет қаралды 21 М.
SC-300 Microsoft Identity and Access Administrator Study Cram
2:43:29
John Savill's Technical Training
Рет қаралды 195 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,3 МЛН