Merge remote branch 'origin/master'

pull/105/merge M-2
Michael Jett 2012-07-10 17:00:30 -04:00
commit 7a3ae5a757
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,8 @@ public class UserInfoUserDetailsService implements UserDetailsService {
authorities.add(ROLE_ADMIN); 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; return user;
} else { } else {
return null; return null;

View File

@ -106,7 +106,7 @@ public class JwkKeyListView extends AbstractView {
JsonObject o = new JsonObject(); JsonObject o = new JsonObject();
o.addProperty("use", "sig"); // since we don't do encryption yet 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("mod", m64);
o.addProperty("exp", e64); o.addProperty("exp", e64);
o.addProperty("kid", keyId); o.addProperty("kid", keyId);