Hi guys, in this lesson we will start to implement spring security leaf. In spring security. There are default configurations about user class about user service, login path and etc. In this lesson, we will customize default user Security Service. In spring security. default user service is user details service.
These user details service is an abstract class so we can override it. To do it, we will create the new class under service package. Our class name will be user details service implementation and these Last we'll implement user details serves class in the Secret Service. And we have an override methods for user details shows this method is law to user by user name. In this method, we will find our users according to username from our user requester. So we will need user repository in service Later we will authorize these user according to user role in this methods, first of all, we will call find by username method from our user repository.
If user is now its own user name not found exception Otherwise authorized users according to user role Then return it with using security user encapsulation with username, password and authentications Okay, that's all about user details service. In next lesson, we will configure it with using spring security configuration. Thank you