diff --git a/src/ProviderController.php b/src/ProviderController.php index c830571..f867074 100644 --- a/src/ProviderController.php +++ b/src/ProviderController.php @@ -85,7 +85,7 @@ public function jwks(ProviderRepository $providerRepository) // ]; } else { - $pkey = openssl_pkey_get_details(openssl_pkey_get_public($crypt->getKeyPath())); + $pkey = openssl_pkey_get_details(openssl_pkey_get_public($crypt->getKeyContents())); } $result['n'] = $this->base64WebSafe($pkey['rsa']['n']); diff --git a/tests/UserinfoControllerTest.php b/tests/UserinfoControllerTest.php index a35982b..af22448 100644 --- a/tests/UserinfoControllerTest.php +++ b/tests/UserinfoControllerTest.php @@ -92,8 +92,8 @@ public function testUserinfoBasic() $config = Configuration::forAsymmetricSigner( new Sha256(), - InMemory::file($keyRepository->getPrivateKey()->getKeyPath()), - InMemory::file($keyRepository->getPrivateKey()->getKeyPath()) + InMemory::plainText($keyRepository->getPrivateKey()->getKeyContents()), + InMemory::plainText($keyRepository->getPrivateKey()->getKeyContents()) ); $token = $config->builder()