From 104cf68ad6a55cf945c18abe8f9b440ea088c74a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 29 Jun 2020 12:00:32 +0300 Subject: Downgrade springfox, update other deps --- src/main/java/com/juick/SignatureManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com') 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 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 = getContext(UriComponentsBuilder.fromUriString(signature.getKeyId()) .fragment(null).build().toUri()); if (context.isPresent() && context.get() instanceof Person) { -- cgit v1.2.3