Skip to content

Commit

Permalink
Update IdTokenResponse.php
Browse files Browse the repository at this point in the history
Currently there is a bug in which the default claims are not set. This happens because all the claim set operations are returning a new instance instead of setting the value on the current object
  • Loading branch information
xterr authored Aug 29, 2023
1 parent 2c13921 commit 9831bbe
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 9831bbe

Please sign in to comment.