Spring Security Tutorial | In depth Course

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 229

  • @DailyCodeBuffer
    @DailyCodeBuffer  2 года назад +6

    Visit brilliant.org/DailyCodeBuffer/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.

  • @erenyeager4452
    @erenyeager4452 2 года назад +32

    Nice video. One suggestion, it would be better if you spend the first 15 mins of the video on which functions you plan to create and why. This would help us have a bigger picture in mind. Thank you for your effort.

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +8

      Thanks for suggestion
      I will try to implement that way from now on
      Keep Supporting

  • @francksgenlecroyant
    @francksgenlecroyant 2 года назад +3

    This is the best Spring Security Course about Authorization and Resource Server so far. Thanks bro, you made my day!

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +1

      Thanks 🙏
      Hope you enjoy the tutorial 😊

  • @seanfang398
    @seanfang398 Год назад +5

    Learning spring security is really making me scratch head (sorry, I am just a newbie to spring😂) . And this tutorial really helps me a lot, many thanks !❤

  • @rushikeshgodase4150
    @rushikeshgodase4150 Год назад +3

    1:01:11 You are creating new token. Then I think you should also update the expiration time as well. Please let me know right or wrong.

  • @irfandogic9579
    @irfandogic9579 2 года назад +7

    Great videos, great explanation, great topics. I would like to see more Reactive Spring with Kotlin and Postgres (or just reactive spring with java and postgres)! Keep up the good work!

  • @damumahendar
    @damumahendar Год назад +5

    lot of depricated API 's , methods , classes are there security is updated a lot in spring 6 pls do an updated tutorial .

  • @Satyam_deb
    @Satyam_deb 2 года назад +7

    The most awaited one i guess... All functionalities in a single course.. Loved it ❤️
    If you could continue this course and add List of Roles instead of single role it would be really helpful..

  • @prajjwallaad
    @prajjwallaad 2 года назад +3

    An extremely important topic explained in a very simplified manner!

  • @MaheshKumar-gt9td
    @MaheshKumar-gt9td 9 месяцев назад

    I felt that your explanation of the topics is awesome, I have only one suggestion that instead you do one video with long hours can break into small and share as a series would be very nice.

  • @riteshyt8170
    @riteshyt8170 2 года назад +3

    Very helpful for beginners and intermediate spring developers... Exceptional content 👏👍

  • @mayankjain2236
    @mayankjain2236 2 года назад +2

    Ohohohoho... another excellent hands on series, which is like all in one here... this really helps us a lot... and thanks for sharing those links... I know its not easy to make such long informative tutorial without getting side tracked anywhere.... appreciate your efforts and patience in making such good videos... thank you much :)

  • @AkashThkr7
    @AkashThkr7 2 года назад

    Firstly, I find your video is a bit tough but now I'm learning more with your concepts.... Thanks

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      Thanks 🙏🏻
      I will try more to make it more understandable

    • @AkashThkr7
      @AkashThkr7 2 года назад

      @@DailyCodeBuffer Can u suggest me from where I learnt about Spring Scheduling CRON

  • @dbarasuk1600
    @dbarasuk1600 2 года назад +1

    Probably the best tutorial I saw on this topic

  • @RushikeshGodase-v1t
    @RushikeshGodase-v1t Год назад

    At 41:00 why we are disabling the cors and csrf. Can anyone tell me the exact purpose of this two functions.

  • @zurumogbonda3225
    @zurumogbonda3225 Год назад

    Time 1:50:00 you added transactional in the CustomUserDetailsService, is there any reason for that??

  • @Yassinel-p9x
    @Yassinel-p9x 11 месяцев назад

    do u have a playlist for newbies or could u plz recommend a source cuz found my self just copy pastin'

  • @atulsharma-nb3to
    @atulsharma-nb3to Год назад

    best thing about his video is how he creates bookmark chapter for each concept

  • @rydmerlin
    @rydmerlin 2 года назад +1

    Try to reimport your maven project right hand side and verify it has the right dependencies. You shouldn’t need to invalidate cache.

  • @OrbitFlux
    @OrbitFlux 2 года назад +1

    Thanks!

  • @Phani.B13
    @Phani.B13 6 месяцев назад

    Thanks for the tutorial. I just have a question, where are we getting the oauth2 access token from the authorisation server and where are we validating it in our client before the endpoint is accessed from rhe browser.

  • @mitayarshop796
    @mitayarshop796 2 года назад +1

    Please explain with the project react .Previous movie

  • @berkaybln247
    @berkaybln247 Год назад

    Is there any video or a part of a video that you explained why we use events etc. ?? I dont get it why we need events in confirming user email and generally why we need events?

  • @ankitpatyal3201
    @ankitpatyal3201 2 года назад +1

    The video was good but I just have one doubt. When the token is expiring you are deleting it from the database, so if someone wants to regenerate the token after expiration then he will not be able to generate as the generation of new token requires the availability of old token in the database. So, do we need to delete the token if it has expired ?

  • @nagavijaykumarprathi8531
    @nagavijaykumarprathi8531 2 года назад +7

    Could please do a plsylist on creating e commerce application using
    1.spring boot microservices
    2. Mongodb
    3. Rabbitmq
    4. Jwt auth
    5. Api gsteway
    6. Circuit breaker
    7. Elk stack
    8. Redis cache
    With microservices user(admin, inventory, nrml customer )
    Cart
    Wishlist
    Payment
    Subscription (like amazon prime, Flipkart plus)
    Please try to do it. It will help us a lot.
    From your previous video we learn all individualy.
    Please do this project. It helps us how to know how things work togethe

  • @MayurSahdev-d1e
    @MayurSahdev-d1e 6 месяцев назад

    how to make a post Request call from Postman for the same endpoint ?

  • @therealkon_
    @therealkon_ 2 года назад

    Why do you add the dependencies to the submodules pom and not to the parents pom? Isn't this supposed to be the other way around?

  • @ravikumar-ek2jp
    @ravikumar-ek2jp 6 месяцев назад

    I have little doubt, if user get the token after the 10 min of registration and then it will click for enable his registration.
    Now token has been expired and he has no api to re-generate the token again because you deleted the record from database.
    I think you need to focus on this and explore the api again.
    Thanks buddy for tutorial

  • @mrityunjaisingh
    @mrityunjaisingh 2 года назад

    Please tell me why we create service interface and it's implementation seprate , what is its benefit??

  • @vaibhavkgote
    @vaibhavkgote Год назад

    how do we add security client project as a module in spring security tutorial project? I'm using eclipse IDE.

  • @prateekthakker2358
    @prateekthakker2358 2 года назад

    How would you get hold of old token in case the email is not received to regenerate token?

  • @devbel
    @devbel 2 года назад

    This is gold, great concepts explained in a simple way

  • @tintin8111
    @tintin8111 2 года назад

    Please help me!
    My code cannot redirect after authorization successfully, thems still login rollback.

  • @yarik83men51
    @yarik83men51 2 года назад

    The best lessons for Spring boot auth, security.

  • @MugiwaraTeamDLuffy
    @MugiwaraTeamDLuffy Год назад

    Hi, can anyone tell me which is the advantage of using the application events for the send of the email rather than using a simple service method to do it when the user is registered? Thank you

  • @user-zy5ig3ux7s
    @user-zy5ig3ux7s 2 года назад

    Unknown provider ID 'spring' not sure why i am getting this issue

  • @rahul-thakur
    @rahul-thakur Год назад

    Hey 👋
    I just wanted to ask you one thing, why we are using two different classes for model and entity, why they can’t be same?
    Why we can’t use entity as modal(POJO), since we are having duplicate code.

    • @camperjr4413
      @camperjr4413 Год назад +1

      i think model is same as dto.if u dont want to expose all the db column to client then u use model or dto

  • @amgu6596
    @amgu6596 2 года назад +2

    Hello , very informative video.
    Need to know how to track multiple failed login attempts and how to block the user using spring security

  • @sessionexpert
    @sessionexpert 2 года назад +2

    Great video as Always, Allah grant you great success a head, as you are sharing such a valuable content for free.

  • @truongtranquang3986
    @truongtranquang3986 Год назад

    Hello, can i have a question? So, in this course, did you used spring security with JWT?

  • @yatintripathi5638
    @yatintripathi5638 2 года назад

    Your videos are great and on point...it helped me learn spring boot very clearly without any doubts...thanks

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +1

      Glad to hear that you got value from th tutorial 🙏🙏
      Keep Supporting

    • @yatintripathi5638
      @yatintripathi5638 2 года назад +2

      @@DailyCodeBuffer please make a video on Quartz scheduler implementing calender also as it is not well explained anywhere on RUclips

  • @rushikeshgodase4150
    @rushikeshgodase4150 Год назад

    In this project, How can we register the user after applying auth2 security.

  • @Anonymous-ri3vu
    @Anonymous-ri3vu Год назад

    I am getting Access to localhost is denied error and 403 error while trying to run the SpringSecurityClientApplication part. Somebody please help me fix it.

    • @thisislaz
      @thisislaz Год назад

      I believe the issue can be fixed if you add "/verifyRegistration" to the static String[] WHITE_LIST_URLS in WebSecurityConfid package, if you had not done that yet.

  • @kratarthsingh
    @kratarthsingh Год назад

    Which theme are you using? Is it Community Edition or Premium?

  • @matusseidl
    @matusseidl 2 года назад

    is it possible to have client and auth server in the same project (jar -file )???

  • @pratikkurbet3437
    @pratikkurbet3437 2 года назад

    Very in details explaining for concept, Thanks Shabbir.
    But I'm stuck at auth-server:9000/login page its giving whitelabel error page ?
    Where did I go wrong?

  • @adegbiteoluwafemi1892
    @adegbiteoluwafemi1892 2 года назад +1

    Great. I have really learn a lot from your video. On this one, you said we can resend token even if token was not gotten but resending token requires old token. Is there anything I’m missing?

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      Thank you so much if I had said so then I missspoke. sorry for that. But yeah once we get the tokrn then only will be able to send it.

  • @krunalsoni574
    @krunalsoni574 2 года назад +1

    Brilliant Brother....You make coding easy as pie....👍👍

  • @yugandharchowdary181
    @yugandharchowdary181 2 года назад

    Hii broo I have one doubt, like how the role data have to give static, means when we are storing the data into database can we give the role

  • @sriramiyab
    @sriramiyab 2 года назад

    hi, how can i redirect to a html page, where i can show user information instead of showing json. Can any one help ? I am working with separate frontend and backend. Thank you.

  • @ayaanrashid960
    @ayaanrashid960 5 месяцев назад

    I hope you are reading this, why did you use User in both model and Entity

  • @slycreator
    @slycreator 2 года назад +2

    Wow😊😊😊😊 Thanks Alot.
    Do you have a video on Testing in springboot ?
    I really enjoy how you teach spring🥺

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +2

      Thanks 🙏
      Spring boot tutorial covers the Testing as well

    • @slycreator
      @slycreator 2 года назад +2

      Yea..I mean writing unit testing and integration testing in springboot

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      Yes that. Please checkout that tutorial. If you think that any other topics needed, I will plan a video on that

  • @ganeshande5708
    @ganeshande5708 9 месяцев назад

    Bro in now they are saying there are lot of changes done in spring security is it older or new one is it ok for me to learn this

  • @krishnakalyan3213
    @krishnakalyan3213 2 года назад +2

    Hi The video was amazing . Just a small thought when we are resending verification token we should also update the time in verification token table . Seems like as per current implenentation the expiration time is not getting updated in database along with new token . Please share your thoughts if i am wrong

    • @camperjr4413
      @camperjr4413 Год назад

      because he was setting the expiration time from entity and not updating VerificationToken entity expiration time before saving to db

  • @lageraho3508
    @lageraho3508 Год назад

    When you have entity then why you created model I don't understand???Actually I have covered spring-boot videos of another youtuber..... Am here for Spring-Security only.....So it's kind of confusing for me.....

  • @somsuryananda
    @somsuryananda 9 месяцев назад

    Very wonderful video explanation. Although I would like to know one more aspect that how can we write Unit Tests for this code. Rather in generic how can we write Unit Tests for Spring based projects.

  • @shyamsoni5389
    @shyamsoni5389 2 года назад

    I have given only one URL in whitelist but its permits all the end points.
    I have cloned your code as well but its stil the same.
    Can you please confirm what are the changes required

    • @shubhammahindru3563
      @shubhammahindru3563 2 года назад

      I am also facing th same issue, whitelisting doesn't works

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 2 года назад +1

    Thank you Shabbir ❤❤ I hope you are Listen my request this video. Your teaching style is amazing 👏 😍 🙌

  • @amittoradmal5074
    @amittoradmal5074 2 года назад +1

    Microservices video helped me a lot. Thanks for your efforts. 1 Question - Can I use this spring security code in my Login service in microservices? Please suggest me. waiting for your reply

  • @pt_trainer9244
    @pt_trainer9244 2 года назад

    Thanks for tutorial, I just had one problem.
    If i initially create a user but the token expires, and then I try to access the link via email, ie.
    /confirm?token=xxx
    Then obviously it won't validate because the token is expired, but then it also deletes that token when I call the endpoint to confirm after the token is expired.
    This means when I try to resend the confirmation token /resendVerifyToken after the token is expired, it won't work because the old token was deleted from the database, and I can't get a new link with the token to confirm account again.
    I hope it makes sense, can you please inform what to do?

    • @pt_trainer9244
      @pt_trainer9244 2 года назад

      Okay so instead of deleting the token in this condition check,
      if((confirmationToken.isConfirmationTokenExpired())) {
      confirmationTokenRepository.delete(confirmationToken);
      }
      I removed the delete statement so that it doesn't delete the token if a user hits /confirm after the token has expired, now I can generate a new token using this token because it's still in the database even if the token is expired.
      Please let me know if this is okay?

    • @adegbiteoluwafemi1892
      @adegbiteoluwafemi1892 2 года назад

      @PT_Trainer, what if the email was never gotten

  • @connect2soumen
    @connect2soumen 2 года назад +1

    Hi Shabbir. Thanks for this detailed tutorial on Spring Security, easy to understand. However I am facing issue while building client app.
    Error LogCaused by: java.lang.IllegalStateException: Unknown provider ID 'spring'
    Is there any configuration I have missed to add. Kindly assist on this. TIA.

    • @ujjwalranjan7245
      @ujjwalranjan7245 Год назад

      hey Soumen I am facing same issue.Did you find solution?

  • @sunilsahoo8138
    @sunilsahoo8138 2 года назад

    Really heartly appreciated...mind blowing explanation...keep it up...god bless you for sharing knowledge with us.

  • @subashraj3919
    @subashraj3919 Год назад

    Nice and Informative with Clear explanation Thanks.😊

  • @yuckri
    @yuckri 2 года назад

    It's a very useful video. I tried to implement it to the end according to the tutorial. However, when I log in as a valid user, the "Content required" page does not appear. WhiteErrorPage (Bad Request / 400 error) is displayed.
    What could be the cause?

    • @youssouphafaye1710
      @youssouphafaye1710 2 года назад

      same error for me too if you find the solution can you share it please

  • @jatinsharma3792
    @jatinsharma3792 Год назад

    Can you make a part how to configure and prevention of CSRF attacks in Spring web application. ( I am not talking about spring boot )

  • @banjokoabiodun3050
    @banjokoabiodun3050 2 года назад

    A nice masterpiece . Which of your videos did you implement email with springboot ?

    • @banjokoabiodun3050
      @banjokoabiodun3050 2 года назад

      @33:43 MINUTES , You said you have created a video for sending email. which of your videos please ?

  • @ujjwalranjan7245
    @ujjwalranjan7245 Год назад +1

    Can we use @Bean inside @Service as PasswordEncoder is defined in CustomUserDetailService Class?
    Btw Thank you for your efforts.

    • @ujjwalranjan7245
      @ujjwalranjan7245 Год назад

      Also at 2:10:19 will bindAuthenticationProvider be @Autowired or @Bean?

  • @scotneymamai4673
    @scotneymamai4673 2 года назад

    This video is good but I have not understood anything. What is the difference between the model and the entity? Because I tried implementing things as you have done in the video but my code kept on pointing back to the entity class and not the model class

    • @ibrbou1801
      @ibrbou1801 2 года назад

      that's an approach called dto i think

  • @kiranfegade3658
    @kiranfegade3658 2 года назад

    Hey, May I know which theme u have used in intellij idea?? Thanks 😀

  • @juanmaporrero2973
    @juanmaporrero2973 2 года назад

    Hi! Amazing video! What could be happening if after login, with correct credentials, the login page is shown again? Thanks!!

  • @athakur33
    @athakur33 2 года назад

    Man, you are doing a great work!! Pls make some more videos.

  • @nguyenhavu7542
    @nguyenhavu7542 2 года назад +1

    Great video as always, everything is free, this is amazing. Thank you

  • @kckantande
    @kckantande 2 года назад +1

    When the verification token expires, how would you handle the unverified user entry, in the database? In case that person wants to register with those same details.
    Great video by the way

    • @kareendawn4991
      @kareendawn4991 Год назад

      I think we can always check if that user already exists in the database before creating the user. If the user exists but the registration has not been verified then we can just resend a verification token to complete the pending registration instead of re-registration.

    • @vampzzz
      @vampzzz Год назад

      @@kareendawn4991 if the vertificationToken is expired then how are we going to get the user details, as he is deleting the token from the DB. I think the token shouldn't be deleted instead there should just be some service logic which just checks if the token is expired or not.

  • @vyankteshkarwa4959
    @vyankteshkarwa4959 2 года назад

    Whole course is just amazing almost solve my every doubt about spring security thing
    You are amazing @dailycodebuffer
    Just a one request could you please make one video for explaining that Oauth2 thing we are confused where do we have to make changes in "Application.yml" file.

  • @usamaiqbal9933
    @usamaiqbal9933 2 года назад

    I just start watching this hope it will be another great video 🙂🙃
    Please make a video series on angular + springboot+ microservices + security + MySQL etc. like a Realtime example of full stack application end to end .

  • @nandanhj7053
    @nandanhj7053 2 года назад

    Your helpful videos are the give away for us.Thanks and all the best 🙏👍

  • @kirwakelvinkering3122
    @kirwakelvinkering3122 2 года назад

    Please which color theme is this ??

  • @abhishekdatta4610
    @abhishekdatta4610 2 года назад +1

    why did you use * on the endpoints inside Webconfig !!??
    also great content thank you

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      * as a wild char to allow everything
      Thanks 🙏🏻

    • @abhishekdatta4610
      @abhishekdatta4610 2 года назад

      @@DailyCodeBuffer thank you so much for you quick response really enjoy your content
      great job

  • @createit759
    @createit759 2 года назад

    Hello! I really like the way you teach us how to do complex things easily. Really like your videos. Please, can you tell me which IntelliJ theme you're using? It looks very cool! Thanks!

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +1

      Thank you so much 😊
      I am using Xcode dark theme

    • @createit759
      @createit759 2 года назад

      @@DailyCodeBuffer thanks again.

  • @shrikantkale8622
    @shrikantkale8622 2 года назад

    Nice Tutorials❤Best Channel 👍

  • @bulutcakan3048
    @bulutcakan3048 2 года назад

    Could you add JWT option ?

  • @balakrushnabehera2800
    @balakrushnabehera2800 2 года назад

    Great Job Bro👍 A small request from my side could you please make introductory video on applicationEvents and listener i am new learner and it will help new learners like me🙏🙏

  • @pawan2647
    @pawan2647 2 года назад

    Does it have opene I'd connect too ?

  • @cryptoxhunt1322
    @cryptoxhunt1322 2 года назад

    please tell me what theme u used in IJIdea?

  • @ramosespann6496
    @ramosespann6496 2 года назад

    Hi , do you have vídeos of Spring webflux?

  • @animeisheaven
    @animeisheaven 2 года назад

    I love Your Setup..
    u r using Intellij ?? & theme & icon theme..

  • @sajithdilshan2936
    @sajithdilshan2936 2 года назад

    Bro. Can you do a cloning project using spring-boots ?

  • @pasza01
    @pasza01 2 года назад

    Great tutorial!!!. Any videos regarding Vaadin and Springboot framework in future?

  • @bthakur3870
    @bthakur3870 2 года назад

    Awesome tutorial, Thank you

  • @ashokumakrish
    @ashokumakrish 2 года назад +1

    Please post the Angular videos also.

  • @ibrbou1801
    @ibrbou1801 2 года назад

    you created another project as parent and added the two projects but you didn't said it in the video

  • @nikhileshyoutube4924
    @nikhileshyoutube4924 2 года назад

    Weeknd stuff 🔥🙏🏻🙏🏻🥳

  • @KolosBros
    @KolosBros 2 года назад

    Besides it'a an awesome tutorial (You really have a talent for this) - how did You customize Intellij like that? Is that kind of a theme or plugin?

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      Thanks 🙏
      That is xcode dark theme and Atom icons packs

    • @KolosBros
      @KolosBros 2 года назад

      @@DailyCodeBuffer thanks :) Can I ask You one more question: how do You learn such concepts? You go through the documentation? Read books? How long does it take You to be comfortable with the topic? I ask because You have deep understanding of the matter and is very intriguing :)

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +2

      I go through the documentation and sample examples provided by the library or framework
      Thats gives a little better understanding of how to use the framework and library
      Then I build a small project from it
      And i don’t try to learn everything at s time. Whatever is needed I learn that only
      Thank you so much and I am no expert in any matter ☺️

    • @KolosBros
      @KolosBros 2 года назад +1

      @@DailyCodeBuffer thanks for respond :) You are inspirng (at least for me) what makes You kinda expert :D

  • @siddhantjaiswal4231
    @siddhantjaiswal4231 Год назад

    Why are you calling super() in VerificationToken()

  • @manivasuppalamarthi6948
    @manivasuppalamarthi6948 Год назад

    Very useful and very informative

  • @lyricsalvids8706
    @lyricsalvids8706 2 года назад +1

    yo can you make file upload in springboot?

  • @YoutuberMaskarado
    @YoutuberMaskarado 2 года назад +3

    Hi! Thank you again for the one of the best channels on youtube, fast and clear! I have a question, what is the difference between this and the
    OAuth 2.0 Implementation with Spring Security and Spring Boot | Full Example video? I am learning about jwt and security and had read about a config server with spring cloud for store secret keys for authorization, something like that. Do you have any video like that?

  • @hhcdghjjgsdrt235
    @hhcdghjjgsdrt235 10 месяцев назад +1

    20:55

  • @hcrnn7518
    @hcrnn7518 Год назад

    Lets get started

  • @mrstark8150
    @mrstark8150 2 года назад

    Hi amazing video!! Wtha is you ide theme?? Is epic!!! 😉👍🏼

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +1

      Thanks 🙏🏻
      It is Xcode Dark

    • @mrstark8150
      @mrstark8150 2 года назад +1

      @@DailyCodeBuffer thks for your answer!! This theme include the icons in the project exolorer? Or is other plug-in?

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад +1

      For icon’s, I am using Atom icons plugin