Browse Source

jwt 提醒不用于生产

sas-2.1.1
shengzhaoli.shengz 3 years ago
parent
commit
78686ff74f
  1. 2
      src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java

2
src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java

@ -115,7 +115,7 @@ public class OAuth2ServerConfiguration {
ECKeyGenerator keyGenerator = new ECKeyGenerator(Curve.P_256);
keyGenerator.keyID(RESOURCE_ID);
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);
return new ImmutableJWKSet<>(jwkSet);

Loading…
Cancel
Save