commit
7a3ae5a757
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue