mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
perf(apigateway): read the query parameter map through the request helper in the SigV4 check (#8425)
This commit is contained in:
1 parent
85492a4147
commit
dc74687f73
1 file changed
+2
-1
@@ -2,6 +2,7 @@ package io.floci.aws.services.apigateway;
|
||||
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.core.common.RequestScopes;
|
||||
import io.floci.aws.core.common.ResteasyRequests;
|
||||
import io.floci.aws.core.common.auth.CredentialScope;
|
||||
import io.floci.aws.core.common.auth.SessionTokenCheck;
|
||||
import io.floci.aws.core.common.auth.SigV4Canonicalization;
|
||||
@@ -118,7 +119,7 @@ public class ExecuteApiSigV4Authorizer {
|
||||
|
||||
private Result verify(String httpMethod, HttpHeaders headers, UriInfo uriInfo, byte[] body,
|
||||
String signedRequestPath) throws Exception {
|
||||
MultivaluedMap<String, String> queryParameters = uriInfo.getQueryParameters();
|
||||
MultivaluedMap<String, String> queryParameters = ResteasyRequests.queryParameters(uriInfo);
|
||||
String authorization = headers == null ? null : headers.getHeaderString(HttpHeaders.AUTHORIZATION);
|
||||
boolean presigned = SigV4SignedRequest.ALGORITHM.equals(queryParameters.getFirst("X-Amz-Algorithm"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user