Skip to content

Commit 375615d

Browse files
authored
Merge pull request #222 from CyberSource/release/16-MAY-2026
Automated release commit on 16-MAY-2026
2 parents 12ad317 + c9b3c1e commit 375615d

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

lib/Authentication/Jwt/JsonWebTokenGenerator.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function getPayloadClaimSet($resourcePath, $payloadData, $method, $merch
8888
// Set the request method, host and resource path in the JWT body as per the specification for all request types
8989
$jwtPayload["request-method"] = strtoupper($method);
9090
$jwtPayload["request-host"] = $merchantConfig->getRunEnvironment();
91-
$jwtPayload["request-resource-path"] = $this->extractResourcePath($resourcePath);
91+
$jwtPayload["request-resource-path"] = $resourcePath;
9292

9393
// Choose issuer claim in the JWT body as per the use_metakey flag in the config file
9494
if($merchantConfig->getUseMetaKey())
@@ -144,16 +144,5 @@ private function extractSerialNumber($x509Certificate)
144144
}
145145
}
146146

147-
private function extractResourcePath($resourcePath)
148-
{
149-
if (empty($resourcePath)) {
150-
return "";
151-
}
152-
153-
// Split the string to remove the query params
154-
$parts = explode('?', $resourcePath, 2);
155-
return $parts[0];
156-
}
157-
158147
}
159148
?>

0 commit comments

Comments
 (0)