Merge remote branch 'origin/master'

pull/105/merge M-2
Michael Jett 13 years ago
commit 7a3ae5a757

@ -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;

@ -106,7 +106,7 @@ public class JwkKeyListView extends AbstractView {
JsonObject o = new JsonObject();
o.addProperty("use", "sig"); // since we don't do encryption yet
o.addProperty("alg", rsaSigner.getAlgorithm()); // we know this is RSA
o.addProperty("alg", "RSA"); //rsaSigner.getAlgorithm()); // we know this is RSA
o.addProperty("mod", m64);
o.addProperty("exp", e64);
o.addProperty("kid", keyId);

Loading…
Cancel
Save