Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fr05t1k committed Sep 5, 2019
1 parent e0facf7 commit 85f7313
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
));
?>

<a href="<?=$esia->buildUrl()?>">Войти через портал госуслуги</a>
Expand Down Expand Up @@ -98,4 +100,4 @@ $esia->getConfig()->getOid();
```php
$config->setToken($jwt);
$config->setOid($oid);
```
```

0 comments on commit 85f7313

Please sign in to comment.