Vigyata.AI
Is this your channel?

Spring Boot OAuth 2.0 Login with Microsoft Azure

8.1K views· 115 likes· 24:47· Mar 20, 2024

🛍️ Products Mentioned (8)

This video dives deep into implementing Single Sign-On (SSO) using Microsoft Azure Active Directory (Azure AD) for your Spring Boot application. Unleash the power of a unified login experience, boosting user convenience and security! By the end of this video, you'll be equipped to: Confidently configure SSO between your Spring Boot application and Azure AD. Streamline the login process for your users. Enhance the overall security posture of your application ecosystem. Prerequisites: Basic understanding of Spring Boot development. A Microsoft Azure account (free tier available). ✅ *For branding and Business inquiries* ► learnwithiftekhar@gmail.com 🎯🎯 *Subscribe to my Newsletter:* https://learnwithiftekhar.substack.com/ 🎉 *Get IntelliJ Idea 100% for 3 Months:* https://www.jetbrains.com/store/redeem/ 👉 *Use Promo Code:* LearnWithIfte 👉 *Master programming by recreating your favorite technologies*: https://app.codecrafters.io/join?via=learnwithiftekhar 📘 Resources Mentioned: 🧑‍💻 Source Code: https://github.com/learnwithiftekhar/Spring-Boot-Microsoft-Azure-Single-Signon 🔐 *Secure 3 Spring Boot endpoints in 30 minutes (free guide):* https://learnwithiftekhar.kit.com/secure-your-api-in-30-minutes 🙊 Here are the tools and resources I use in my videos: 🌐 Secure your connection with NordVPN: https://nordvpn.sjv.io/o4zYan IDE I use for coding * IntelliJ Idea Ultimate * VsCode * Sublime ⛔ Background sound: https://share.epidemicsound.com/ia954g 🤚 In case you want to contact me: ❌ My LinkedIn profile: https://www.linkedin.com/in/hossain-md-iftekhar/ ❌ Github: https://github.com/learnwithiftekhar *Note:* Some of the links in this description are affiliate links, and I may earn a small commission if you make a purchase through them. Thank you for your support. Contents 0:00 - Introduction & Demo of Final Result: 1:15 - Overview of Steps & Core Dependencies 2:30 - Creating the Project with Spring Initializr 4:00 - Project Setup in IDE & application.yml Introduction 5:15 - Configuring application.yml 6:30 - Configuring application.yml 7:45 - Registering Application in Azure Portal 9:00 - Retrieving Tenant ID, Client ID, and Client Secret from Azure 11:00 - Creating IndexController 12:30 - Creating index.html with TimeLeaf 13:45 - Initial Test & Correcting Issuer URI 15:00 - Logging In and Identifying User Name Issue 16:15 - Debugging to Find Correct User Name Attribute 17:30 - Updating application.yml for Username Attribute 18:15 - Adding Styling with Pico CSS 19:00 - Displaying Additional User Information in HTML 20:15 - Displaying User Authorities in HTML 21:30 - Implementing Initial Logout & Identifying Security Flaw 23:00 - Explaining the Logout Problem 24:15 - Solution: Custom Logout Handler and SecurityConfig 25:45 - Configuring SecurityConfig and Creating CustomLogoutHandler 27:00 - Overriding logout Method in CustomLogoutHandler 28:15 - Retrieving Azure's End Session Endpoint 29:30 - Implementing Azure Logout Logic in CustomLogoutHandler 31:00 - Final Test of Global Logout & Conclusion

🎬 More from Learn With Ifte