Class DomainUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

    @Component("userDetailsService")
    public class DomainUserDetailsService
    extends Object
    implements org.springframework.security.core.userdetails.UserDetailsService
    Authenticate a user from the database.
    • Constructor Detail

      • DomainUserDetailsService

        public DomainUserDetailsService​(UserRepository userRepository)
    • Method Detail

      • loadUserByUsername

        @Transactional
        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(String login)
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService