aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-06-29 12:00:32 +0300
committerGravatar Vitaly Takmazov2020-06-29 12:00:32 +0300
commit104cf68ad6a55cf945c18abe8f9b440ea088c74a (patch)
treebcccea6cb81185fea0d1e7d0fd95e3b63e3f3c4f /src/main
parentc239004e7884ad2a712a16cf800cb321c357f468 (diff)
Downgrade springfox, update other deps
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/SignatureManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/SignatureManager.java b/src/main/java/com/juick/SignatureManager.java
index 037f9e30..0d7b17a6 100644
--- a/src/main/java/com/juick/SignatureManager.java
+++ b/src/main/java/com/juick/SignatureManager.java
@@ -104,7 +104,7 @@ public class SignatureManager {
public User verifySignature(String method, String path, Map<String, String> headers) {
String signatureString = headers.get("signature");
logger.info("Signature: {}", signatureString);
- Signature signature = Signature.fromString(signatureString, null);
+ Signature signature = Signature.fromString(signatureString, Algorithm.get("rsa-sha256"));
Optional<Context> context = getContext(UriComponentsBuilder.fromUriString(signature.getKeyId())
.fragment(null).build().toUri());
if (context.isPresent() && context.get() instanceof Person) {