<reponame>mariner105/microservices-demo<filename>analytics-service/src/main/java/com/microservices/demo/analytics/service/security/AnalyticsUserDetailsService.java
package com.microservices.demo.analytics.service.security;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class AnalyticsUserDetailsService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        return AnalyticsUser.builder()
                .username(username)
                .build();
    }
}
