Skip to content

Commit ed6b13c

Browse files
Merge pull request #32 from selfsimilar/env_keys
Final refactor fixes for using keys in environment variables
2 parents 286dfc0 + 46e0784 commit ed6b13c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ProviderController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function jwks(ProviderRepository $providerRepository)
8585
// ];
8686

8787
} else {
88-
$pkey = openssl_pkey_get_details(openssl_pkey_get_public($crypt->getKeyPath()));
88+
$pkey = openssl_pkey_get_details(openssl_pkey_get_public($crypt->getKeyContents()));
8989
}
9090

9191
$result['n'] = $this->base64WebSafe($pkey['rsa']['n']);

tests/UserinfoControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public function testUserinfoBasic()
9292

9393
$config = Configuration::forAsymmetricSigner(
9494
new Sha256(),
95-
InMemory::file($keyRepository->getPrivateKey()->getKeyPath()),
96-
InMemory::file($keyRepository->getPrivateKey()->getKeyPath())
95+
InMemory::plainText($keyRepository->getPrivateKey()->getKeyContents()),
96+
InMemory::plainText($keyRepository->getPrivateKey()->getKeyContents())
9797
);
9898

9999
$token = $config->builder()

0 commit comments

Comments
 (0)