aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-13 23:02:22 +0300
committerGravatar Vitaly Takmazov2023-01-13 23:02:22 +0300
commit3e24323834b324aac0deb228c7a66be570c5fbb9 (patch)
tree6508dc54f04452e4c5d67d241bc27e0a918a36f7 /src/main/java/com
parentcdfc8171036f52d8b69861125e7a05a9b7314a2c (diff)
OAuth: use static key id
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/config/SecurityConfig.java2
1 files changed, 1 insertions, 1 deletions
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);