Spring Security Users & Authorities schema | JdbcUserDetailsManager tech walkthrough | #6
Selenium Express Selenium Express
107K subscribers
2,667 views
76

 Published On Apr 10, 2024

In this video, we will learn to configure spring security with database (MySql). In the previous session we have coded an application with inmemeoryuserdetails manager and stored the registered users data inside the server memory. In this video, we will change the logic for user details saving and we will store the details of an user inside the database.

We have a ready made api available called “JdbcUserDetailsManager” in spring security which can help us to createUser , deleteUser, updateUser, loadUserByUsername. We don’t have to write the logic for the above methods , the api methods implementations are given by spring framework and are ready to use.

Since we will be using spring security’s own implemented methods to persist and manipulate data, we need to use spring security user schema and authorities schema. For an example to store a user, we need to create exactly a table named called Users and the columns names will be exactly username, password, enabled. We don’t have the luxury here to customise the table / column name.

Let’s explore how jdbcuserdetailsmanager works internally ?

TIMESTAMP
--------------------

00:00 - Introduction to JdbcUserDetailsManager
17:15 - saving user to database MySQL (create user)
21:30 - setting up JdbcUserDetailsManager / Datasource bean
31:50 - spring security internals
42:14 - role based authentication in spring boot

#springsecurity #springboot #springboottutorial

For more free/paid courses visit
https://www.seleniumexpress.com

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
   • Java interview questions and answers ...  

Watch my new Hello spring boot series
   • Spring Vs Spring Boot - Why Spring Bo...  

Watch Spring boot Hot topics
   • @Reposicotry Vs @Service | Spring Boo...  

Java Interview / Question and Answer series
   • Java collections interview questions ...  

Explain spring Bean Lifecycle
   • REAL-TIME: Spring Bean life cycle usi...  

spring core
   • Spring framework tutorial for beginne...  

spring mvc
   • Spring MVC course introduction || Und...  

spring mvc intermediate
   • [INTERMEDIATE] Spring MVC Course Prev...  

Spring JDBC
   • Spring JDBC Course Preview || Let’s t...  

spring live project
   • #1 Build and Deploy A Spring Project ...  

SPRING SECURITY COURSE[NEW]
   • Spring Security Course Preview | Lear...  

For more courses visit
https://www.seleniumexpress.com

Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to [email protected]

you can ping me on my Facebook page
  / seleniumexpress  

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
  / 187000222361579  

you can ask for support in my website forum
https://www.seleniumexpress.com

Subscribe to my youtube channel

   / @seleniumexpress  

Follow me on Insta
  / selenium_express  

show more

Share/Embed