updated userinfouserdetailsservice to use username instead of userid -- this should actually be a wrapper class though

pull/105/merge
Justin Richer 13 years ago
parent b0a7ebd9b1
commit 9f16f309bd

@ -53,7 +53,8 @@ public class UserInfoUserDetailsService implements UserDetailsService {
authorities.add(ROLE_ADMIN);
}
User user = new User(userInfo.getUserId(), password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
// TODO: this should really be our own UserDetails wrapper class, shouldn't it?
User user = new User(userInfo.getPreferredUsername(), password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
return user;
} else {
return null;

Loading…
Cancel
Save