Spring Security - Lesson 2 - Implementing the UserDetailsService

preview_player
Показать описание
The Spring Security stream will teach you how to use Spring Security, from the basic authentication and authorization architecture to using OAuth 2.

Рекомендации по теме
Комментарии
Автор

1:28 diagram
9:40 start coding
16:13 creating database tables
27:35 creating configuration class
30:13 implementation of UserDetailService
39:51 creating user that implements UserDetails

RoggerElfo
Автор

Amazing! The most consistent explanation you can find in free tutorials.

nickolayonischenko
Автор

hardly anyone shares industry-level knowledge in youtube tutorials. Thanks! <3

rajdipbhattacharya
Автор

Thank you so much Laur. Even the highly paid content cannot match the depth and clarity that your free courses provide.

mandardeshpande
Автор

1 Like from my side is really less to show you how much i appreciate your teachings, your time and your energy you are giving us. Thanks a lot.

alesblaze
Автор

Wonderful! Awesome explanation. Finally I come across a Place to understand basics and deep dive

prasannakapu
Автор

Great explanation even beginner will understand kudos to ur work

anudeepgrandhi
Автор

Thank you sir you are the best. Always at the top level

lenigaussgauss
Автор

Thank you very much Laurentiu, you are great!

codecoffee-farsi
Автор

Note for all who wants to implement it without boot. User details service implementation has to be a component. The security configuration class needs explicit declaration of base package with @ComponentScan even those you have it in root configuration class.

nickolayonischenko
Автор

Thanks for the video. It's really helping in understanding the fundamentals of Spring security module.
can you please do series on Spring boot with thymeleaf.

sumit
Автор

Hi I want to know why you did not use @EnableJpaRepositories and @EntityScan annotation? Mine did not work without these two annotation.

suryasikharej
Автор

Hello Laurentiu, first of all thanks for all your hard work on these youtube series.

In the souce code from the Manning site, in chapter ssia-ch2-ex4, I notice that to unit test the configuration that uses the AuthenticationManagerBuilder to configure the UserDetailsService, you use the annotation @WithUserDetails. That test however only works with the test-specific configuration defined in TestConfig. Presumably because in the actual configuration, the UserDetailsService is not defined as a @Bean. Is that test then not testing the wrong configuration?

When I use @WithMockUser, the test does pass without a separate test configuration. Would that annotation be more appropriate here? What is the difference and when would it be appropriate to use one or the other?

kreander
Автор

Thank you for the awesome tutorials. Could you please clarify me at 36.26 where its mentioned that constructor injection is recommended rather than field injection. As Implementation for the UserRepository is done by Spring, is it possible to use it in the ProjectConfig where the UserDetailsService is instantiated. Thanks in advance - Manu

unam
Автор

Hi One doubt,
At 47:56, In Projectconfig clas, A method is being called by spring security userDetailService() which return only just instance of JPAUserDetailService only, My doubt is how then loadByUserName() method is being called.

timefly
Автор

In your project you havent called the loadUserByUsername() with any value as parameter, how it is validating username with mysql db's username value and letting the postman request enter into the application?

urrahman
Автор

Hey. How have you been?. Today I was trying to create a spring boot application with spring security but the IDE is telling me that WebSecurityConfigurerAdapater is deprecated. How true is it and if it is what is the alternative to Thank you for your assistance.

webeltech
Автор

Hii
Laur Spilca , where are you defining the table name and database name ?

AbhishekJoshi-fiis
Автор

hey @laurspilca how does using @Bean annotation at 31:09 creates an instance of JPAUserDetailsService class (if we don't annotate this class with @Component) as shown at 31:14

maksadnahibhoolna-wcef
Автор

Great explanation! My only concern is when I use MSSQL, I can't retrieve the User by Username like MySQL (I only change the config in application.properties file)

mikehenshaw