|
|
@ -115,7 +115,7 @@ public class OAuth2ServerConfiguration {
|
|
|
|
ECKeyGenerator keyGenerator = new ECKeyGenerator(Curve.P_256);
|
|
|
|
ECKeyGenerator keyGenerator = new ECKeyGenerator(Curve.P_256);
|
|
|
|
keyGenerator.keyID(RESOURCE_ID);
|
|
|
|
keyGenerator.keyID(RESOURCE_ID);
|
|
|
|
JWK jwk = keyGenerator.generate();
|
|
|
|
JWK jwk = keyGenerator.generate();
|
|
|
|
System.out.println("\n Use auto-generated jwk: " + jwk.toJSONString());
|
|
|
|
System.out.println("\n Use auto-generated jwk: " + jwk.toJSONString() + "\nDO-NOT-USE-PRODUCTION");
|
|
|
|
JWKSet jwkSet = new JWKSet(jwk);
|
|
|
|
JWKSet jwkSet = new JWKSet(jwk);
|
|
|
|
|
|
|
|
|
|
|
|
return new ImmutableJWKSet<>(jwkSet);
|
|
|
|
return new ImmutableJWKSet<>(jwkSet);
|
|
|
|