Allow public clients to use token endpoint, closes #611, closes #613

pull/618/head
Justin Richer 2014-06-09 15:55:06 -04:00
parent 5ec7404e7b
commit 71fa796b42
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,8 @@ import org.springframework.security.oauth2.provider.ClientDetails;
import org.springframework.security.oauth2.provider.ClientDetailsService;
import org.springframework.stereotype.Service;
import com.google.common.base.Strings;
/**
* Shim layer to convert a ClientDetails service into a UserDetails service
*
@ -49,7 +51,7 @@ public class DefaultClientUserDetailsService implements UserDetailsService {
if (client != null) {
String password = client.getClientSecret();
String password = Strings.nullToEmpty(client.getClientSecret());
boolean enabled = true;
boolean accountNonExpired = true;
boolean credentialsNonExpired = true;