Spring Boot Security With Azure Active Directory | OICD | Oauth2 | JavaTechie

Ғылым және технология

In This tutorial I will walkthrough on how to secure a Java Spring Boot Application using Microsoft Azure AD, which is a great and widely adopted example of a reliable Identity Provider
👉 Create Azure Active Directory instance & new Tenant
👉 Add an application registration for your Spring Boot app
👉 Add a user account to your directory, and add that account to an appRole
👉 Configure and compile your app
#JavaTechie #SpringBoot #Security #AzureAD
Spring boot microservice Premium course lunched with 70% off 🚀 🚀
Hurry-up & Register today itself!
COURSE LINK : javatechie5246.ongraphy.com/
PROMO CODE : JAVATECHIE50
GitHub:
github.com/Java-Techie-jt/springBoot-azureAD-Auth
Blogs:
medium.com/@javatechie
Facebook:
groups/javatechie
Join this channel to get access to perks:
kzread.infojoin
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community ,
you are free to use source code from above mentioned GitHub account

Пікірлер: 70

  • @dhirajnavale3861
    @dhirajnavale3861 Жыл бұрын

    Bro last week I was just thinking what is Azure active directory and here is a video by you thank you so much

  • @lakshminathanrd5174
    @lakshminathanrd517415 сағат бұрын

    How to get and print accessToken that is provided by Azure AD after authentication?

  • @gopisambasivarao5282
    @gopisambasivarao5282 Жыл бұрын

    Appreciate your efforts, Basant...

  • @zawedakhtar379
    @zawedakhtar379 Жыл бұрын

    Thank you for this video:)

  • @omaradrian80
    @omaradrian8011 ай бұрын

    Thanks for the effort!!

  • @hashimp5262
    @hashimp5262 Жыл бұрын

    Very helpful content 👍🏻

  • @arnabneogi4237
    @arnabneogi42379 ай бұрын

    Hey Basanth, this is very helpful. But how can you integrate this with spring security and apply filter? Example, if I want to implement this with api-gateway and want to implement authentication to only a few APIs, I would need to implement spring security. How can I do that using azure authentication?

  • @bboyfool215
    @bboyfool2158 ай бұрын

    Nice tutorial, thank you How about the logout feature, or how can we force logout from springboot application. Hope you have another demo

  • @kamalk4917
    @kamalk491715 сағат бұрын

    Hi sir. I have a application where my FE is react and is deployed to a app service in azure and it is authenticated using Msal. It calls my BE spring boot app deployed to another Web app in azure . How to I need to configure security in this scenario as my FE does authentication and it receives token. Do I need to validate that token or Altogether create a new app registration for my BE app or make use of existing client to validate the token send from FE

  • @user-yc2ho5oh7b
    @user-yc2ho5oh7b10 ай бұрын

    with Azure AD if user logged in once then we don't need to ask again username password how to do this with spring boot and azure thanks in advance

  • @surajpandey7533
    @surajpandey753311 ай бұрын

    Sir, I have a large pdf (50 pages) in that pdf I want to put data in some fields of that pdf and after that send it to user.. Could you please make a video on that to write content to html pages and after that convert to pdf.

  • @user-lw2jn8gp3e
    @user-lw2jn8gp3e10 ай бұрын

    do me a favor sir i need to access Azure AD directory with personal mcrosoft accounts only, Need to access my tenant from personal microsoft accounts . reply ...please

  • @rajkumarwinc9372
    @rajkumarwinc93723 ай бұрын

    Hi Basant, currently I'm working on Azure ad SSO, could you please help me on , How to implement logout of Azure ad logged in user?

  • @BalarajuKanike
    @BalarajuKanike10 ай бұрын

    Hi basant, is it possible to get access_token attribute here?

  • @user-sr8hd4by8m
    @user-sr8hd4by8m9 ай бұрын

    how to get the azure token , and the token can be used to query the graph api ?

  • @devchouhan2436
    @devchouhan24362 ай бұрын

    I have a two api's they are preserved with azure ad how can I communicate with them using resttemplate

  • @rajkumarwinc9372
    @rajkumarwinc93723 ай бұрын

    Hi Basant, if we search for any videoos we will get your videos on top first. Thanks for your efforts. How to get access_token, refresh_token, id_token, client_info, expires_in, token_type, scope etc... details when user logged in.

  • @jaswanthg3876
    @jaswanthg3876 Жыл бұрын

    You are one of the most underrated youtuber But eventually you will reach out to 1M Thanks for the videos Also if possible try to do the videos on Multi threading it would be helpful

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Thanks buddy for appreciating my work. Hope for the best 🤞🥰

  • @sajid.farooqi8074

    @sajid.farooqi8074

    Жыл бұрын

    I think sir is working for the requested topic, hopefully we will soon see Multireading course

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Yes i will cover multi threading soon . It will be helpful if you guys could specify the usecase which you are looking for.

  • @sajid.farooqi8074

    @sajid.farooqi8074

    Жыл бұрын

    @@Javatechie we are supposed to start from initial to advance level.

  • @jaswanthg3876

    @jaswanthg3876

    Жыл бұрын

    @@Javatechie how multithreading used in the springboot

  • @indibizz1724
    @indibizz17246 ай бұрын

    Hello admin. Can I make one package for authentication in spring for user verification and configure with my existing Java and .jsp project? Using azure ad ..is it possible?

  • @anilreddy9654
    @anilreddy96549 ай бұрын

    How to call the api in postman what parameters need to send

  • @prabhatmahanty3799
    @prabhatmahanty37996 ай бұрын

    Hello Basant bhai, this video is very helpful. I have a doubt. My requirement is to fetch the microsoft form data by using graph api. So, here how and where I register the microsoft form url so that I will get the data as response.

  • @niharr7
    @niharr73 ай бұрын

    Instead of client secret i would like to implement private key jwt based client authentication. How to do that?

  • @zawedakhtar379
    @zawedakhtar379 Жыл бұрын

    Basant sir is great

  • @rushikeshkarkhanis7915
    @rushikeshkarkhanis7915 Жыл бұрын

    Thanks for the video. Can you built frontend (Full Stack Application) React/Angular and Spring Boot ??

  • @Javatechie

    @Javatechie

    11 ай бұрын

    I will

  • @rushikeshkarkhanis7915

    @rushikeshkarkhanis7915

    11 ай бұрын

    @@Javatechie Thank you ♥️

  • @anilreddy9654

    @anilreddy9654

    9 ай бұрын

    Can u provide me the repo for frontend and backend with azuread

  • @user-lw2jn8gp3e
    @user-lw2jn8gp3e10 ай бұрын

    hi sir, i need global access microsoft azure active directory,can you post as soon as possible

  • @KoppoluBalayogeeswar
    @KoppoluBalayogeeswar11 ай бұрын

    Based on your video the server maintains the cookie for the subsequent requests to validate, how do we achieve passing bearer token to validate ont he authentication is done on azure, basically i want to achieve stateless after you authenticate in azure for next 1hr e.g. based on your oAuth token expiry

  • @Javatechie

    @Javatechie

    11 ай бұрын

    That token expiry limit you can set 📐

  • @zenitneziri4677
    @zenitneziri4677 Жыл бұрын

    @JavaTechie I am trying to create a tenant within Azure AD, in order to put some users there and connect to a backend project. But I can't create a tenant at all, when I go to the manage tenants, the create tenant button is not clickable at all. p.s Also when entering Azure AD I have no primary domain (I tried to enter a custom domain the button is not clickable too) if this is a relevant factor to above issue.

  • @Javatechie

    @Javatechie

    Жыл бұрын

    In the first login attempt this issue appears but try in the new browser it will not give any error

  • @udiptadas4936
    @udiptadas49369 ай бұрын

    captcha now working? anyone have same issue /

  • @VVeNqbMx0
    @VVeNqbMx011 ай бұрын

    Why do we need to use server: forward-headers-strategy: native ?

  • @Javatechie

    @Javatechie

    11 ай бұрын

    To avoid proxy

  • @anilreddy9654
    @anilreddy96549 ай бұрын

    angular and spring boot rest apis azure ad project

  • @user-yc2ho5oh7b
    @user-yc2ho5oh7b10 ай бұрын

    how to logout once I logged in

  • @niharr7
    @niharr75 ай бұрын

    Thanks Basant. How to retrive the id token and userinfo in spring App

  • @Javatechie

    @Javatechie

    5 ай бұрын

    No i don't think we can do that because it's an oauth security

  • @manee427
    @manee427 Жыл бұрын

    Amazing video. How can we access user details inside the controller?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Pass the principal object and get user details.

  • @manee427

    @manee427

    Жыл бұрын

    @@Javatechie thanks a lot

  • @balrajkanike1685
    @balrajkanike168511 ай бұрын

    Hello i just recreated this but finally it is redirecting to default login page from spring server, not redirecting to Azure AD login page. Why?

  • @Javatechie

    @Javatechie

    11 ай бұрын

    Please correct your configuration in yml

  • @balrajkanike1685

    @balrajkanike1685

    11 ай бұрын

    @@Javatechie that is almost same, and that credentials are successfully authenticating user without spring boot, I think here this request it self not going to azure ad login page because if any error in configuration azure ad login page display it there :)

  • @VVeNqbMx0
    @VVeNqbMx011 ай бұрын

    I want to store the users that authenticate via Azure AD inside a db. How can I get the user information after it logged in via Azure AD?

  • @Javatechie

    @Javatechie

    11 ай бұрын

    No you can't do that. That's completely violence the contract of auth delegation

  • @VVeNqbMx0

    @VVeNqbMx0

    11 ай бұрын

    I need his first name,last name and email. What is wrong with wanting to store it?

  • @Javatechie

    @Javatechie

    11 ай бұрын

    Yes these principal details you can get no problem with that

  • @roshanraj8727
    @roshanraj87273 ай бұрын

    Nice explanation , i was thinking of a poc on this and i got all information through your channel ❤. If possible can let me know how can i encrypt the tentanid , client id in application.yml , Thanks in advance

  • @Javatechie

    @Javatechie

    3 ай бұрын

    Good to hear this roshna , if you want to encrypt in yml file then can use jasypt

  • @roshanraj8727

    @roshanraj8727

    3 ай бұрын

    @@Javatechie Is there any way to directly access the codes from azure active directory from spring boot app instead of having them in .yml file

  • @rajkumarwinc9372

    @rajkumarwinc9372

    3 ай бұрын

    ​@@roshanraj8727no way

  • @balrajkanike1685
    @balrajkanike168511 ай бұрын

    Is it possible to authenticate user and get user group details like this? Please reply

  • @Javatechie

    @Javatechie

    11 ай бұрын

    User details means you can get name and email i don't think we can extract other fields

  • @vignesh3184
    @vignesh3184 Жыл бұрын

    Can we generate token using azure ad?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Which token?

  • @vignesh3184

    @vignesh3184

    Жыл бұрын

    @@Javatechie jwt or session token

  • @rakibahmed1011
    @rakibahmed101111 ай бұрын

    Please..... Make video on the new Spring Authorization Server.!!!

  • @Javatechie

    @Javatechie

    11 ай бұрын

    Okay i will