All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy