Skip to content

Commit

Permalink
Merge pull request #54 from xterr/patch-1
Browse files Browse the repository at this point in the history
Update IdTokenResponse.php
  • Loading branch information
steverhoades authored Sep 8, 2023
2 parents 2c13921 + 9831bbe commit 269c4dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/IdTokenResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ protected function getBuilder(AccessTokenEntityInterface $accessToken, UserEntit
}

// Add required id_token claims
$builder
return $builder
->permittedFor($accessToken->getClient()->getIdentifier())
->issuedBy('https://' . $_SERVER['HTTP_HOST'])
->issuedAt(new \DateTimeImmutable())
->expiresAt($expiresAt)
->relatedTo($userEntity->getIdentifier());

return $builder;
}

/**
Expand Down

0 comments on commit 269c4dc

Please sign in to comment.