br.com.m4rc310.gql.security.UserDetailsServiceImpl Maven / Gradle / Ivy
The newest version!
package br.com.m4rc310.gql.security;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
public class UserDetailsServiceImpl implements UserDetailsService {
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
return org.springframework.security.core.userdetails.User.builder()
.username("[email protected]")
.password("test123")
.authorities("Admin")
.build();
}
}