Skip to content

Commit a1d2faf

Browse files
authored
Merge pull request KnpLabs#722 from nazar-pc/patch-1
Fix example (file contents is needed, not path)
2 parents 31abea2 + a1e207d commit a1d2faf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/security.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ $jwt = (new Builder)
6666
->setIssuer($integrationId)
6767
->setIssuedAt(time())
6868
->setExpiration(time() + 60)
69+
// `file://` prefix for file path or file contents itself
6970
->sign(new Sha256(), new Key('file:///path/to/integration.private-key.pem'))
7071
->getToken();
7172

@@ -76,4 +77,4 @@ $github->authenticate($token['token'], null, Github\Client::AUTH_HTTP_TOKEN);
7677
```
7778

7879
The `$integrationId` you can find in the about section of your github app.
79-
The `$installationId` you can find by installing the app and using the id in the url.
80+
The `$installationId` you can find by installing the app and using the id in the url.

0 commit comments

Comments
 (0)