diff --git a/README.md b/README.md index c9c3648..2b3a533 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,15 @@ $config = new \Esia\Config([ 'clientId' => 'INSP03211', 'redirectUrl' => 'http://my-site.com/response.php', 'portalUrl' => 'https://esia-portal1.test.gosuslugi.ru/', - 'privateKeyPath' => 'my-site.com.pem', - 'privateKeyPassword' => 'my-site.com', - 'certPath' => 'my-site.com.pem', - 'tmpPath' => 'tmp', 'scope' => ['fullname', 'birthdate'], ]); $esia = new \Esia\OpenId($config); +$esia->setSigner(new \Esia\Signer\SignerPKCS7( + 'my-site.com.pem', + 'my-site.com.pem', + 'password', + '/tmp' +)); ?> Войти через портал госуслуги @@ -98,4 +100,4 @@ $esia->getConfig()->getOid(); ```php $config->setToken($jwt); $config->setOid($oid); -``` \ No newline at end of file +```