Skip to content

Commit

Permalink
Merge pull request #41 from rhertogh/patch-1
Browse files Browse the repository at this point in the history
Support private key pass phrase for `InMemory` key
  • Loading branch information
steverhoades authored Oct 13, 2021
2 parents b21afa7 + 3a06ac5 commit 766692d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IdTokenResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function getExtraParams(AccessTokenEntityInterface $accessToken)
method_exists($this->privateKey, 'getKeyContents')
&& !empty($this->privateKey->getKeyContents())
) {
$key = InMemory::plainText($this->privateKey->getKeyContents());
$key = InMemory::plainText($this->privateKey->getKeyContents(), (string)$this->privateKey->getPassPhrase());
} else {
$key = LocalFileReference::file($this->privateKey->getKeyPath(), (string)$this->privateKey->getPassPhrase());
}
Expand Down

0 comments on commit 766692d

Please sign in to comment.