From 3e24323834b324aac0deb228c7a66be570c5fbb9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 13 Jan 2023 23:02:22 +0300 Subject: OAuth: use static key id --- src/main/java/com/juick/config/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java index cb448cf3..78950c80 100644 --- a/src/main/java/com/juick/config/SecurityConfig.java +++ b/src/main/java/com/juick/config/SecurityConfig.java @@ -170,7 +170,7 @@ public class SecurityConfig { RSAPrivateKey privateKey = (RSAPrivateKey) keystoreManager.getPrivateKey(); RSAKey rsaKey = new RSAKey.Builder(publicKey) .privateKey(privateKey) - .keyID(UUID.randomUUID().toString()) + .keyID(webDomain) .build(); JWKSet jwkSet = new JWKSet(rsaKey); return new ImmutableJWKSet<>(jwkSet); -- cgit v1.2.3