Adding Spring Security to new Spring Boot project - Java Brains Brain Bytes

Sdílet
Vložit
  • čas přidán 19. 05. 2024
  • In this video, you’ll learn how to add Spring Security to a fresh Spring Boot application step-by-step. Adding Spring Security to Spring Boot has a surprising and interesting effect. You’ll see what this effect is, and also understand why that’s happening.
    Java Brains website: javabrains.io
    #JavaBrains #BrainBytes #WhatIs #SpringSecurity #Spring #SpringBoot #Java #Tutorial

Komentáře • 137

  • @lunamore4077
    @lunamore4077 Před 7 měsíci +3

    Sincerely Thank You, Sir! I used to feel dumb because I couldn't get the idea of spring security from my professor's lecture. Now I realize that there are no bad students but bad teachers who make their students feel dumb...

  • @ambarishkapil8004
    @ambarishkapil8004 Před 9 měsíci +5

    Thank you for making this tutorial. I have seen paid courses that just basically state the concepts or use a power point slide. But you taking the effort to draw and animate this tutorial makes all the difference. Really appreciate you doing this Kaushik. Keep up the good work.

  • @joanofarcshubhajoanofarcsh1010

    A good teacher can teach difficult things in simple manner. That's koushik ji. Technologies and logics simplified.

    • @elenazaytseva9196
      @elenazaytseva9196 Před 4 lety +3

      I can't agree more! You are the best teacher I have ever come across!

  • @jeetusahu3489
    @jeetusahu3489 Před 3 lety +5

    My career path got changed from QA tester to Java Developer with the help of this wonderful channel. I will remain grateful to Kaushik for making such a wonderful, easy to understand videos. Thank you for your effort!

  • @utsavanand5558
    @utsavanand5558 Před 4 lety +4

    Blessed to have tutor like you. The simplicity of explaining concepts is class apart.

  • @wilsonbarbosa8210
    @wilsonbarbosa8210 Před měsícem

    Dude, I'm learning angular with spring and I've just added spring security to my dependencies and I was shocked this default authentication was a thing. I was so confused and this playlist of yours is helping me SOOOOOOOO MUCH! Like, seriously, you are one of the best teachers on youtube. You have such a concise and direct way of presenting these concepts! And you comparisons and metaphors are excellent, the visuals are very helpful as well. One of the best content I saw in my entire life! Thank you thank you

  • @krige
    @krige Před 3 lety +2

    Spring Security makes much more sense now, thanks. I discovered your channel through this video and I plan to watch all your other videos. You have outstanding teaching skills! If you are taking requests, I would love to see a video which explains how to write tests for own request handling methods (with MockMvc) and for methods which call external party endpoints (with WireMock) in an application configured with Spring Security.

  • @muditbajpai1218
    @muditbajpai1218 Před 4 lety

    Like I mentioned earlier, it feels really nice to be following the things posted by you on timely basis. And I am eagerly waiting for the next in series.

  • @commentsonly4341
    @commentsonly4341 Před 4 lety

    These teasers r so tempting ... can’t wait for full video series on security ... please publish oauth2 , ssl handling in spring boot soon , I m so habituated to learn from ur videos that I don’t find other tutorials bad 😊

  • @genprimabiocakti6159
    @genprimabiocakti6159 Před 3 lety +1

    here i'm to see the clearest about the CONCEPT, best teacher, lucky i found this

  • @siddharthbhardwaj8563
    @siddharthbhardwaj8563 Před 4 lety

    Trust me this trainer has done a brilliant explanation on this concept Spring Security...I have subscribed this channel after watching this video.

  • @shantipriya4724
    @shantipriya4724 Před 4 lety +1

    You are a great teacher. Explain difficult things so easily.

  • @jnfrle
    @jnfrle Před 4 lety

    Thanks so much for making this available!

  • @whatnot798
    @whatnot798 Před 4 lety

    Your channel is pure gold.

  • @raghavanaliassaravananm1546

    The precise and perfect tutorial Kaushik, certifying your legendary expertise! :)

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 Před 2 měsíci

    Fantastic tutorial! Thank you so much! 💛

  • @108vicky
    @108vicky Před 4 lety

    This is the best example so far.. thanks so much for this.

  • @oni-chan2065
    @oni-chan2065 Před 2 lety

    After visiting 100s of websites and still not able to understand properly, Here just in single video am able to understand properly.
    Hats off to the to you Man!!

  • @balanepalaiyathane9714

    God Bless You Kaushik you are helping many people to better their career. You are covering concepts to the best level

  • @Imthatguyx10
    @Imthatguyx10 Před 3 lety

    Absolute excellence! Thank you for making this!!! Definitely a big like AND subscribe for you my dude!

  • @SushilKumarBhaskar
    @SushilKumarBhaskar Před 4 lety +4

    Excellent Explained EE+, a Long awaited on spring boot security Tuto, JWT along with Spring Security Please?

  • @SurajMahli
    @SurajMahli Před 3 lety

    What a teacher.. You are changing my coding life

  • @falgunrajput8490
    @falgunrajput8490 Před 4 lety

    Hi sir
    Your all videos are great !
    Till now i didn't find any person who is teaching like you
    Thanks for videos :)

  • @adityan422
    @adityan422 Před 4 lety

    You are an amazing techie... Salute for your contribution

  • @karkiashwin1174
    @karkiashwin1174 Před 4 lety

    It was the best part of your series. thnks for the tutorial

  • @go_better
    @go_better Před rokem

    Thanks! It's so interesting, clear and...not scary at all!

  • @ShameeraAnuranga
    @ShameeraAnuranga Před 4 lety

    Explained All the things very nicely

  • @deveshmishra6611
    @deveshmishra6611 Před 4 lety

    Thanks for this series

  • @aihsdiaushfiuhidnva
    @aihsdiaushfiuhidnva Před rokem

    this is such a good tutorial, you are a cut above other youtubers.

  • @CHANDRU419
    @CHANDRU419 Před 4 lety +1

    Sir. Please! I'm badly looking for your security series. Please enable us spring secured! You are great

  • @SuperWhatusername
    @SuperWhatusername Před rokem

    Thank you for the tutorial

  • @wafaeletje
    @wafaeletje Před rokem

    a really good explanation!! thank you, i have subscribed

  • @mohammedouladram1077
    @mohammedouladram1077 Před 4 lety

    Thanks for this video.another Spring security default behaviour is that adds a csrf controle, the request is handling a synchronized token hidden in the authentication page.

  • @dineshshekhawat2021
    @dineshshekhawat2021 Před 4 lety

    Brilliant! Just brilliant!

  • @francogb
    @francogb Před 4 lety +28

    Amazing job!
    Can you explain about JWT in Spring Security?
    Thanks!

    • @Comyupower
      @Comyupower Před 4 lety +2

      Can you maybe do a tutorial where you have angular use jwt, but login forms are also possible?

    • @dexdinh1007
      @dexdinh1007 Před 4 lety

      I need JWT too, most of video and other tuts do not explain clearly :(

  • @lindijin8103
    @lindijin8103 Před 2 lety

    Thank youu. So simple and useful

  • @ronaksayta8191
    @ronaksayta8191 Před 2 lety

    I wanted to clear my concepts your video helped me thanks

  • @ibtissamboutahi3078
    @ibtissamboutahi3078 Před 4 lety

    *********** what a great videos **********************

  • @chandniyadav1697
    @chandniyadav1697 Před 2 lety

    Amazing explanation!

  • @yash.brahmb
    @yash.brahmb Před 4 lety +4

    Hi Kaushik, You're a gem. A wonderful teacher. With every video, we receive knowledge from badic to advanced. Thank you for uploading so many wonderful videos.
    If possible, do you have any plan to have a workshop on spring security with regards to Microservices workshops that you have currently?

  • @maheshshete7000
    @maheshshete7000 Před 2 lety

    Very nice explanation sweet and short

  • @KP-hz5wm
    @KP-hz5wm Před 3 lety

    You are amazing Kaushik.. You deserve an award :)

  • @LalitKumar-cw9rf
    @LalitKumar-cw9rf Před rokem

    Very good tutorials , easy to understand

  • @beinglogicalyadav9750
    @beinglogicalyadav9750 Před 4 lety

    Fabulous as always......

  • @dipeshsinghjr.4000
    @dipeshsinghjr.4000 Před rokem

    Bro how you just make these topics so easy to understand...? Anyway thanks your channel is great relief for me.

  • @prabhatyadav3373
    @prabhatyadav3373 Před 4 lety

    Awesome 👍

  • @vamshireddy6722
    @vamshireddy6722 Před 4 lety

    I got a full-time job at American Express. Thank you #javabrains#koushikji

  • @amruthakm1042
    @amruthakm1042 Před 4 lety

    Hi Kaushik Sir,
    This tutorial is wonderful asusual.
    Please plz add tutorials for Junit and Mockito.

  • @josephkingstonleomariamich7220

    One of the best persons thanks

  • @tohidurislammondal2897

    Hello Koushik sir, I have been watching your contents from last year. Each playlist is a masterpiece. The music at the end of the video. did you compose it? its nice.

  • @shaswatdasgupta3776
    @shaswatdasgupta3776 Před 4 lety

    Thanks Kaushik!

  • @bhargavartworks
    @bhargavartworks Před 3 lety

    Very helpful , thanks

  • @southindianadventure4791

    good explanation sir

  • @sanyammadaan2396
    @sanyammadaan2396 Před 3 lety

    Wow! Great!
    When user sets the password in application.properties, then does this password securely travels from client side to server side.
    Or we have to add that encryption.

  • @katiesun1533
    @katiesun1533 Před 4 lety

    Great! 👍

  • @shankarchandramouleeswaran3864

    I Java brain,
    I have been following your series. It is must to appreciate the way the concept is explained. Good series.
    I have a query in spring boot security.
    Consider for a spring boot application, we have implemented spring boot security. Following to this, we have configured the username, password and uri to be protected based on the roles. Now, on running the code, the app should work fine if we access the uri. But, if we access the html page straight away, with out any authentication, the html page is getting loaded. I am not sure whether it is a bug or something. Could you please help here on how to protect the html pages also?

  • @ImperialSolo
    @ImperialSolo Před 5 měsíci

    Thx Man!

  • @anurag9110
    @anurag9110 Před 4 lety

    Great video

  • @pratyush__agarwal
    @pratyush__agarwal Před 3 lety

    God bless you 💓

  • @kaleemullahnizamani7436
    @kaleemullahnizamani7436 Před 4 lety +4

    Make this play list comprehensive and cover all security concepts every spring boot app need security and unfortunately there are not good resources available to learn spring boot security.

  • @d2k2
    @d2k2 Před 8 měsíci

    what is the name of the used intellij theme? thanks :)

  • @liubomyr-oleksandrdebryniu8044

    thanks a lot very useful

  • @dmytroshmidt5981
    @dmytroshmidt5981 Před 3 měsíci

    Thank you

  • @mritunjayyadav3788
    @mritunjayyadav3788 Před 4 lety

    First of all you are the greatest of all time . I have one little question can anyone tell me how spring security uses Principal object because one spring boot instance can serve multiple logged in users so how it stores all Principal details of all users ?

  • @venkat81100
    @venkat81100 Před 4 lety

    Tq Koushik👍

  • @devrajatverma
    @devrajatverma Před 4 lety

    Really liked the "Spoiler alert" 😜

  • @mostinho7
    @mostinho7 Před 4 lety +1

    Done thanks

  • @subramanianchenniappan4059

    great bro

  • @gowrisankar3905
    @gowrisankar3905 Před 4 lety

    This is what iam waiting for

  • @AbhishekChanda
    @AbhishekChanda Před 4 lety +122

    Do you have a Pateron account? You deserve to be paid.

  • @menabebawy390
    @menabebawy390 Před rokem

    great man

  • @TheStrategist314
    @TheStrategist314 Před 4 lety

    Nice.

  • @nagendrapp2213
    @nagendrapp2213 Před 4 lety

    could u plz upload a series on design patterns

  • @MrEvmk
    @MrEvmk Před 3 lety +2

    Notes for my ref:
    By adding spring-security-starter project to the classpath , it will automatically configure it
    Filter is a like a servlet scans all the URLs and provide default implementation.
    Spring security default behaviour :
    1.provides login form
    2.login Error handling
    3.Added mandatory login for all the API
    4.creates default user and password
    Spring.security.user.name=foo
    Spring.security.user.password=foo

  • @anshgyl
    @anshgyl Před 4 lety

    Can you please add a video in which we can use a custom login page, instead of a default one, how do we call the login API from our own form?

  • @Standupibrahimbackup
    @Standupibrahimbackup Před 4 lety +4

    I love you more than my mother loves me. Thank you so much for these tutorials. Ok not as much as my mother but definitely more than my girlfriend

  • @Nikhil-mu9ol
    @Nikhil-mu9ol Před 4 lety

    Hi kaushik sir, please make one video on spring boot and hikari

  • @melsaied101
    @melsaied101 Před 4 lety

    That's nice

  • @keyurnayee6746
    @keyurnayee6746 Před 3 lety

    this is really good content. but you should make videos in white theme in any IDE when you are teaching

  • @FranklinXPe
    @FranklinXPe Před 4 lety

    What did you mean when said: ClassPath? The operating system's Classpath when we set en enviroment variables. Or The "src/java/main" path in the project?

    • @priyakdey7891
      @priyakdey7891 Před 4 lety

      project class path - springboot classpath

  • @pablohernandez4305
    @pablohernandez4305 Před 2 lety

    i don't know how configurate spring security default username and password, thanks for this video

  • @kumargaurav4362
    @kumargaurav4362 Před 4 lety

    When can we see Spring Session in Java brains Playlist ?

  • @niyioke8755
    @niyioke8755 Před 4 lety

    Ya just the best

  • @Joe-qv2jo
    @Joe-qv2jo Před rokem

    Never expected a login screen out of the box lol

  • @romantum
    @romantum Před 4 lety +2

    this guy sounds like Dinesh from Silicon Valley :) I love watching it just for that

  • @sud19891
    @sud19891 Před rokem

    Thanks

    • @Java.Brains
      @Java.Brains  Před rokem

      Thanks so much Appreciate the contribution

  • @dionthomas7077
    @dionthomas7077 Před rokem

    Should there be an empty application.properties file on git?

  • @PrashanthSam..
    @PrashanthSam.. Před 2 lety

    But we have a major issue here how the welcome page opened in the site did you add any properties in applicaton.properties?
    please respond

  • @alexandrustan8143
    @alexandrustan8143 Před rokem

    What dependencies you used to create the project?

  • @cyborgplay
    @cyborgplay Před 4 lety +4

    The dependecy code:
    org.springframework.boot
    spring-boot-starter-security

  • @dhanya4741
    @dhanya4741 Před 2 lety +2

    Anyone watching this masterpiece in 2022?

  • @shashankcool
    @shashankcool Před 2 lety

    Hi , Even after adding maven dependency spring-boot-starter-security in pom.xml file after starting the app login form is not getting displayed. Please guide me since I'm new to spring boot.

  • @lequocthinh8992
    @lequocthinh8992 Před 2 lety

    Can anyone tell me which theme in Intelij that he is using? thx

  • @prof958
    @prof958 Před 3 lety

    Hi people,
    I am following this tutorial but the thing is i alway get a AlertBox that you can fill creditientals. Not a page just a little alertbox. Any idea why i have this ?

  • @sajeevvasudevan6301
    @sajeevvasudevan6301 Před 4 lety

    but sir for this sample code in ur controller your added @ResponseBody annotation then how u getting this out put in web page properly,m did u add some web page in resource

    • @HanilKathuria
      @HanilKathuria Před 4 lety +1

      Rest controller is basically controller + response body. So if you return a string from your rest controller, then it will be shown directly on the web page.

  • @USONOFAV
    @USONOFAV Před 4 lety

    can I use cipher{...} on the password if the my spring boot app uses spring cloud config?

  • @sahinsarkar7293
    @sahinsarkar7293 Před 4 lety +1

    Hi Koushik, I am trying to call a post API from postman after enabling spring security for my app. Now, I can't call the API after adding the username and password as a basic auth in postman ( this gives 401 error ), but when I enter the same credentials in chrome, the security part works. What should I do to send credentials properly for post request from postman?

  • @ifeanyichukwuotiwa9510

    mandatory authentications for all URLs still includes the /error page

  • @spnarayanrao
    @spnarayanrao Před 3 lety

    how to upgrade from Struts security to Spring Security, in Struts project using Security with Struts Security tag lib now how to upgrade to Spring Security. Can you please give some info or create a video on that

  • @kaji6087
    @kaji6087 Před 3 lety

    Anyone knows the name of the theme he is using?