Spring Security Users & Authorities schema | JdbcUserDetailsManager tech walkthrough | #6

Поделиться
HTML-код
  • Опубликовано: 8 июн 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
    www.seleniumexpress.com
    LINKS AND FREE LEARNING RESOURCES
    ========
    Watch my new mock interview series for java developers
    • Java interview questio...
    Watch my new Hello spring boot series
    • Spring Vs Spring Boot ...
    Watch Spring boot Hot topics
    • @Reposicotry Vs @Servi...
    Java Interview / Question and Answer series
    • Java collections inter...
    Explain spring Bean Lifecycle
    • REAL-TIME: Spring Bean...
    spring core
    • Spring framework tutor...
    spring mvc
    • Spring MVC course intr...
    spring mvc intermediate
    • [INTERMEDIATE] Spring ...
    Spring JDBC
    • Spring JDBC Course Pre...
    spring live project
    • #1 Build and Deploy A ...
    SPRING SECURITY COURSE[NEW]
    • Spring Security Course...
    For more courses visit
    www.seleniumexpress.com
    Any time you are getting stuck with issues, Feel free to ask for support.
    You can send mail to seleniumexpress@gmail.com
    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
    www.seleniumexpress.com
    Subscribe to my youtube channel
    / @seleniumexpress
    Follow me on Insta
    / selenium_express

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

  • @amac8439
    @amac8439 2 месяца назад +1

    ❤ thank you so much.

  • @user-vx1oc2bh4r
    @user-vx1oc2bh4r Месяц назад +1

    Should we have to follow only this or we need to learn first from your previous playlist of spring security. ?

  • @srigakolapuatchuthasai5929
    @srigakolapuatchuthasai5929 2 месяца назад

    Thanks abhi 😊

  • @sailakshmi4406
    @sailakshmi4406 19 дней назад

    Hi Abhilash,
    Can you do more videos on jwt and Oauth2 if possible.

  • @adelhatary7473
    @adelhatary7473 Месяц назад

    Could you please do for us Login and logup with spring JPA?
    Thank you ❤