Spring Security Tutorial with Login Example (Spring Boot + Spring Security + MySQL)

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

In this video, we'll go through the Spring Security Implementation with MySql
GitHub Link: bit.ly/368PUWm
Other Video:
-----------------------------------------------------------------------
Implementing JWT (JSON Web Tokens) with Spring Security in Springboot App - • Implementing JWT (JSON...
OAuth2 Spring Security using Facebook in Spring Boot - • OAuth2 Spring Security...
Go / Golang Full Course for Beginners - • Golang Tutorial for Be...
What is Kubernetes | Explained in detail with Architecture - • What is Kubernetes | E...
Kubernetes Components you need to know in 10 minutes - • Kubernetes Components ...
Kubernetes Commands with Example - kubectl - • Kubernetes Commands wi...
Kubernetes YAML Configuration | Deployment and Service - • Kubernetes YAML Config...
How to Deploy Quarkus App in Docker - • How to Deploy Quarkus ...
Follow us on :
--------------------------------------------------------
Website: www.dailycodebuffer.com/
Facebook: / dailycodebuffer
Twitter: / dailycodebuffer
Instagram: / dailycodebuffer
GitHub: github.com/dailycodebuffer
My Laptop :
------------------------------------------------------
ASUS ROG Zephyrus G14, 14" - amzn.to/3tMb1I6
ASUS ROG Zephyrus G14, 14" (US) - amzn.to/3xa6X6m
Audio Gear :
------------------------------------------------------
Maono AU-A04 Condenser Microphone : amzn.to/32FOpwI
Maono AU-A04 Condenser Microphone (US) :amzn.to/3awzUj7
Secondary Audio :
------------------------------------------------------
Maono AU-100 Condenser Clip On Lavalier Microphone : amzn.to/3sGIbYd
Recommended Books:
------------------------------------------------------
Mastering Spring Boot 2.0 (Kindle): amzn.to/3tHJV4L
Mastering Spring Boot 2.0 (US) : amzn.to/3tHNUy5
Building Microservices(Kindle) : amzn.to/3gsA1jL
Building Microservices(US) : amzn.to/3dDnfNn
Spring Boot in Action : amzn.to/2Qo6YTM
Spring Boot in Action (US) : amzn.to/32DkeX9
Spring Microservices in Action : amzn.to/3gsA3rT
Spring Microservices in Action(US): amzn.to/32G3Hl7
Music:
-------------------------------------------------------
Hear the Noise (Sting): kzread.info...
“Sound effects obtained from www.zapsplat.com“
#SpringSecurity #DailyCodeBuffer

Пікірлер: 177

  • @DailyCodeBuffer
    @DailyCodeBuffer3 жыл бұрын

    Follow me on Twitter: twitter.com/DailyCodeBuffer

  • @farawayskies
    @farawayskies2 жыл бұрын

    Thank you so much for producing a video that is less than 30min and filled with incredibly useful information to create our own real-world application. Spring Boot has been a really hard thing for a noobie like me to comprehend. These smaller videos to just comprehend small sections of the framework really helps. I've been spending over a week looking for this information.

  • @laponiec
    @laponiec3 жыл бұрын

    Just managed to watch the first 5 mins, and I am already giving you thumbs up for explaining how to get rid of that login page, a thing that other tutorial hasn'r explained in almost 2 hrs long video. Thank you very much.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thank you so much

  • @p_n002

    @p_n002

    Жыл бұрын

    I'm also read comment like before watching i will update after completing i understand or not

  • @user-ej7lz1op9g
    @user-ej7lz1op9g Жыл бұрын

    u made security so simple, thanks for the video

  • @oshogarg341
    @oshogarg3413 жыл бұрын

    Killer Tutorrial . Best Tutorial on YT

  • @tradewithtony
    @tradewithtony3 жыл бұрын

    Great explanation man, I'm following all your videos.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thank you so much

  • @goutham_gsm
    @goutham_gsm14 күн бұрын

    Very simple and great explanation.

  • @kalpanashinde8345
    @kalpanashinde83453 жыл бұрын

    Very nice flow n presentation , content...jst love your tutorials👍

  • @n.risliazis4332
    @n.risliazis43323 жыл бұрын

    simple and clear explanation. thank you.

  • @luisluiscunha
    @luisluiscunha2 жыл бұрын

    You explain well. Thank you. And congrats.

  • @LTZMSYAL
    @LTZMSYAL2 жыл бұрын

    Thank's a lot for the tuto! Very well done

  • @Arkainebe
    @Arkainebe3 ай бұрын

    Thank you man. Very well explained.

  • @prawintowin
    @prawintowin3 жыл бұрын

    Excellent!!! Please make a video on Oauth implementation.

  • @aibynsagyndyk6281
    @aibynsagyndyk62812 жыл бұрын

    Thank you very much, bro! I am a beginner in Spring and it was very helpful instruction for me. Good luck!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thanks 🙏🏻

  • @mehmedakifay4005
    @mehmedakifay40053 жыл бұрын

    Perfect explanation. Thank you.

  • @gauravdewalkar4830
    @gauravdewalkar48303 жыл бұрын

    Crisp and clear! Thanks 😊

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    🙏

  • @wokyop4513
    @wokyop45133 жыл бұрын

    Wow. Thanks man. You're just awesome

  • @robotsturm6488
    @robotsturm64883 жыл бұрын

    thanks man, i really like the tutorial

  • @ahmettachmuradov8630
    @ahmettachmuradov86303 жыл бұрын

    great explanation, great approach and easily understandable. Thanks very much.

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

    thanks a lot!!! so nice reverb

  • @dmitriydmitriy7270
    @dmitriydmitriy72708 ай бұрын

    Thank you for a very informative tutorial!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    7 ай бұрын

    Glad it was helpful!

  • @AnkitKumar-jg1yh
    @AnkitKumar-jg1yh2 жыл бұрын

    Thankyou so much for making such an useful tutorial.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thanks 🙏🏻

  • @minalraj8839
    @minalraj88392 жыл бұрын

    Awesome explanations for new learners of Spring framework. Really helpful content!!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thanks 🙏🏻

  • @priyankau1982
    @priyankau19823 жыл бұрын

    Big fan of your tutorials..looking forward for new ones if possible pls include devops full course tutorials

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thanks 👍

  • @sangtan6430
    @sangtan64303 жыл бұрын

    perfect video. Thanks so much

  • @rajeevkalangi2472
    @rajeevkalangi24723 жыл бұрын

    I see a lot of potential in you... You are the best tutor for Spring Boot... Keep up the work bro...

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

    Thank you for that video, very undestandable

  • @DailyCodeBuffer

    @DailyCodeBuffer

    Жыл бұрын

    Thanks 🙏

  • @dheebanm3207
    @dheebanm32073 жыл бұрын

    Thanks for this tutorial bro,awesome...

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    🙏

  • @AmitVerma-rc1ex
    @AmitVerma-rc1ex3 жыл бұрын

    multitennant based microservice ( one microservice ( or one app operating) on multiple databases and separate database for each client ) would be greatly beneficial as a tutorial, please implement it

  • @rohinisubramanian1499
    @rohinisubramanian14992 жыл бұрын

    Hi! Thank you so much for the video. I have been following various videos but I am stuck with a badcredentialsexception. Any suggestions on how to fix?

  • @antonmariadas7747
    @antonmariadas77472 жыл бұрын

    good job ! Thanks for the tutorial

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thanks 🙏

  • @mdhabibalam4802
    @mdhabibalam48023 жыл бұрын

    very nice and helpful that video thanks alot

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

    it worked! thank you so much!!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    Жыл бұрын

    Thanks 🙏🏻

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

    Awesome Video! Thank you

  • @DailyCodeBuffer

    @DailyCodeBuffer

    Жыл бұрын

    Thanks 🙏🏻

  • @MyJavaTech
    @MyJavaTech10 ай бұрын

    Thank you . easy to understand.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    7 ай бұрын

    Glad it was helpful!

  • @alisha08ish
    @alisha08ish2 жыл бұрын

    Awesome video,please make a video on spring security using oauth2

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

    Best video ever

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

    Great tutorial !!!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    Жыл бұрын

    Thanks 🙏

  • @srilathareddy9450
    @srilathareddy945011 ай бұрын

    Excellent Explanation

  • @DailyCodeBuffer

    @DailyCodeBuffer

    7 ай бұрын

    Glad it was helpful!

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

    Good job man.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    Жыл бұрын

    Thanks 🙏

  • @MugiwaraTeamDLuffy
    @MugiwaraTeamDLuffy2 жыл бұрын

    Which is the best way to create a secure microservice architecture? Something like this video or using JWT? Another question is: is it safe to send credentials in the body or in the headers?

  • @026_arhmarehman8
    @026_arhmarehman89 ай бұрын

    Thank you, It works!!!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    7 ай бұрын

    Great!

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

    This works well on getmapping request, will the same security configuration work for postmapping as well ?

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

    Fantastic job.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    7 ай бұрын

    Thanks 🙏

  • @koshailimited3805
    @koshailimited38052 жыл бұрын

    Hey there, lots of love for your great tutorials. Can you make a tutorial on Azure App based services with spring boot. Thanks in advance

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

    when I implement the method loadUserByUsername in CustomUserDetailsService class the variable comes as String s not String username. what should I do? Like this loadUserByUsername(String s)

  • @vinod2490
    @vinod24902 жыл бұрын

    Seriously excellent sir

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thank you 🙏🏻

  • @user-vt6fz4wq9b
    @user-vt6fz4wq9b3 жыл бұрын

    good job!!!

  • @ritam378
    @ritam3782 жыл бұрын

    Bro, u are always precise and to the point. A big thumbs up from me 👍

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thanks 🙏

  • @emmanuelpregnolato5026
    @emmanuelpregnolato50262 жыл бұрын

    Awesome work. Quick question. In the class WebSecurityConfiguration the @Autowired field is of type UserDetailsService and not CustomUserDetailsService. I know it's working and sometime Spring uses some black magic, so my guess is that the framework sees on it's classpath the CustomUserDetailsService and passes that instance?

  • @supratikm
    @supratikm3 жыл бұрын

    Awesome and the most time saving tutorial on SpringBoot Security and Login. Please add a deep dive video on after login session management. SpringBoot Session Management and session related security practices

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

    Thanks for this awesome tutorial! Just a little question: If we have lots of roles with many endpoints, Do we use @PreAuthorize annotation instead of hasAuthority() methods in security config in order to make it cleaner?

  • @braulioarencibia7407
    @braulioarencibia74072 жыл бұрын

    Thank you!

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

    Skillful

  • @vudumshiva4162
    @vudumshiva41622 жыл бұрын

    Hi bro,How to use different userdetail service to different endpoints. I have /student/login should use studentuserdetailservice , /staff/login should use staffuserdetailservice.

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

    can you please remake a video on this topic with spring recent release. because WebSecurityConfigurerAdapter depricated. thank you.

  • @dreb.7760
    @dreb.77602 жыл бұрын

    Thank you so much!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    🙏🏻

  • @chandsmd9847
    @chandsmd98472 жыл бұрын

    I'm getting error in postman 401 unauthorized similar to 403 forbidden like that... How can I resolve it... I followed all steps what u said

  • @basu530
    @basu5302 жыл бұрын

    @DailyCodeBuffer How is it taking the password from the password we have provided in the client (angular or postman)? is that happening in WebSecurityConfiguration class where we are setting the password to get DAO provider?

  • @stakhovskiy
    @stakhovskiy2 жыл бұрын

    Thank you.

  • @a.m.jyotiprakashsahu5754
    @a.m.jyotiprakashsahu5754 Жыл бұрын

    WebSecurityConfigurerAdapter is deprecated. what to do?

  • @jitusorout
    @jitusorout2 жыл бұрын

    I am facing an issue with security, I need to esign a doc with aadhar on another website , while returning back from there if I came back within 30 to 40 sec , it came back to same user , otherwise it sends to anonymous user.

  • @joelhenz8764
    @joelhenz87642 жыл бұрын

    Great tutorial, keep on with the good work! Maybe you can help me with my one question: I accidentally mistyped the method 'findByUsername' in the UserRepository and could not start the app. Where exactly is this method defined? I looked at the interface hierarchy and could not find any method called like this. Thanks in advance!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    That is format defined by Spring Data JPA. Based in the name of field we can just declare the methods

  • @nesreenmohd665
    @nesreenmohd6652 жыл бұрын

    Thank you so much.

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    🙏

  • @JavaJourneys
    @JavaJourneys11 ай бұрын

    Can you make an updated version of this vedeo

  • @khushbooJahanRiaz
    @khushbooJahanRiaz3 жыл бұрын

    You make it seem so easy...thanks a lot Shabbir....keep it up...could u plz make a video...Google And Microsoft Calendar API integration using Spring boot Oauth2 and MYsql and also in that Social login integration please make ASAP ........which involves MYSQL also how to test it ......Thanks...JaZaaaKallaah Khair

  • @AkashThkr7
    @AkashThkr72 жыл бұрын

    Sir I've to add "ROLE_" before my role in DB, not able to access directly by admin or user role

  • @sandeepvalapi3731
    @sandeepvalapi37313 жыл бұрын

    Well explained

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thanks

  • @braulioarencibia7407
    @braulioarencibia74072 жыл бұрын

    Thanks!

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    🙏🏻

  • @jenishajenika5975
    @jenishajenika59758 ай бұрын

    thank you ,in 2023 SpringwebsecutrityAdaptor class is deprecated so, it too hard to implement ... can you explain that on another video

  • @johnykb

    @johnykb

    7 ай бұрын

    Yeah I've noted that too

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

    please enable transcription to the video

  • @riyapriya
    @riyapriya3 жыл бұрын

    i need a doubt from controller part with mapping procedure quesry

  • @sush2142
    @sush21422 жыл бұрын

    How does logout work on this? And can I have specific url for login? Like /admin/login and get session id as response?

  • @amithkashyap9107
    @amithkashyap91073 жыл бұрын

    Hey, can you please make a vedio on calling a microservice which is implemented with spring security from another microservice and also best practices to be followed

  • @sakhrnabil7

    @sakhrnabil7

    2 жыл бұрын

    @Daily Code Buffer yes please

  • @OmbasaGeoffrey
    @OmbasaGeoffrey3 жыл бұрын

    wonderful

  • @dasunwahalathanthrige5872
    @dasunwahalathanthrige58723 жыл бұрын

    Hi, I have a problem here, Suppose I am entering the correct username but the wrong password, still the system allowing user to enter the home. if I want to authenticate from both username and password how can we do that?

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

    does WebSecurityConfigurerAdapter exist nowadays?

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

    Hi can you please implement this with mongoDB + JWT + Authentication + OAuth please login and registration

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

    If I use a custom login page running on another port and trying to access this port I am getting cors error even though I allowed all ports Can anyone help me with this please .

  • @shubhamdeshmukh1866
    @shubhamdeshmukh18663 жыл бұрын

    bro hats off .. but how to do postmapping? please explain for postmapping

  • @vincentlestertogle8887
    @vincentlestertogle88872 жыл бұрын

    Just watched your video and it's awesome, the problem is, I keep on getting this error code: Description: Parameter 0 of constructor in com.java.ph3.halinamarket.adapter.CustomUserDetails required a bean of type 'com.java.ph3.halinamarket.models.User' that could not be found. Action: Consider defining a bean of type 'com.java.ph3.halinamarket.models.User' in your configuration. can you help me please :(

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

    Can you help me doing the same login using MSAL4J

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

    My English is so bad , but somehow i still understand everything u said Thumbs up for you man

  • @nourdrissi5781
    @nourdrissi57813 жыл бұрын

    nice job bro it helpfull but if you you don't mind can you creat a custom login system using Angular and spring security

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

    Hey, I tried implementing the code but for correct user name and password I am getting 500 that is internal server error. Can you please help?

  • @a.m.jyotiprakashsahu5754
    @a.m.jyotiprakashsahu5754 Жыл бұрын

    WebSecurityConfigurerAdapter is deprecated now on spring security version 5.7. Please make a video on latest version.

  • @animetsukuyomi7840
    @animetsukuyomi78402 жыл бұрын

    Bro pls make registration page also.. login page was not working when I entered password hash value directly into SQL.

  • @nitishvk8598
    @nitishvk85983 жыл бұрын

    Superb..

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thank you

  • @AaronEzekiel752
    @AaronEzekiel7523 жыл бұрын

    spring security jwt and ldap..please

  • @beyazmarti
    @beyazmarti3 жыл бұрын

    Hey, i like your teaching style. There is no any verbose. 🤙

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thanks ☺️

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

    How do I download the project from GitHub? I don't see any option for download

  • @prometheusli101
    @prometheusli1013 жыл бұрын

    this is great,but i wonder how can it connect to Android app?could you make a example course?

  • @achuthan5025
    @achuthan50253 жыл бұрын

    awsome

  • @mariajenifer7714
    @mariajenifer77149 ай бұрын

    Can anybody tell me why Im getting bad credentials even if the credentials are correct?

  • @MukeshGupta-zr7yc
    @MukeshGupta-zr7yc Жыл бұрын

    I checked the api using postman it it showing error

  • @paayalful
    @paayalful3 жыл бұрын

    this error appears on console while trying to run....Encoded password does not look like BCrypt......what to do?

  • @faaizaslam2762

    @faaizaslam2762

    2 жыл бұрын

    same

  • @vk5503
    @vk55032 жыл бұрын

    please do the vedio with okta token security

  • @vb5969
    @vb59692 жыл бұрын

    Good content..also good that keyboard noise is lower than voice.. Some other videos on some other channels its way too irritating to hear mechanical keyboard noise...

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    Thank you and sorry about that

  • @vb5969

    @vb5969

    2 жыл бұрын

    @@DailyCodeBuffer i dont mean your videos... 🙂

  • @DailyCodeBuffer

    @DailyCodeBuffer

    2 жыл бұрын

    I also have fee videos where I have used Mechanical keyboard 😜

  • @mastanvalishaik8156
    @mastanvalishaik81563 жыл бұрын

    Can you teach the whole course shabbir, please let me know ...

  • @mouhamedsylla1216
    @mouhamedsylla12163 жыл бұрын

    Great

  • @DailyCodeBuffer

    @DailyCodeBuffer

    3 жыл бұрын

    Thanks

Келесі