Skip to content

Commit

Permalink
Merge pull request #194 from kochen/iss_and_sub_must_be_client_id
Browse files Browse the repository at this point in the history
fix: client assertion JWT iss and sub OAuth 2 client_id when requesti…
  • Loading branch information
wazelin authored Nov 6, 2024
2 parents bef0d5f + fb6ac65 commit 9fb8ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/Client/LtiServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private function generateCredentials(RegistrationInterface $registration): strin
MessagePayloadInterface::HEADER_KID => $toolKeyChain->getIdentifier()
],
[
MessagePayloadInterface::CLAIM_ISS => $registration->getTool()->getAudience(),
MessagePayloadInterface::CLAIM_ISS => $registration->getClientId(),
MessagePayloadInterface::CLAIM_SUB => $registration->getClientId(),
MessagePayloadInterface::CLAIM_AUD => [
$registration->getPlatform()->getAudience(),
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/SecurityTestingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private function createTestClientAssertion(RegistrationInterface $registration):
MessagePayloadInterface::HEADER_KID => $registration->getToolKeyChain()->getIdentifier()
],
[
MessagePayloadInterface::CLAIM_ISS => $registration->getTool()->getAudience(),
MessagePayloadInterface::CLAIM_ISS => $registration->getClientId(),
MessagePayloadInterface::CLAIM_SUB => $registration->getClientId(),
MessagePayloadInterface::CLAIM_AUD => [
$registration->getPlatform()->getAudience(),
Expand Down

0 comments on commit 9fb8ee3

Please sign in to comment.