From 9fbd6d1a1fac8affb93cd3a6ae2f13b7151bc40f Mon Sep 17 00:00:00 2001 From: Tobias Schlitt Date: Thu, 12 Nov 2020 10:08:20 +0100 Subject: [PATCH] Fix: Missing auth method in list of omitted passwords. --- doc/security.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/security.md b/doc/security.md index 1ced88b97c2..10608a7eb51 100644 --- a/doc/security.md +++ b/doc/security.md @@ -27,7 +27,7 @@ and guess what should contain `$password`. The `$method` can contain one of the * `Github\Client::AUTH_JWT` - https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app The required value of `$password` depends on the chosen `$method`. For `Github\Client::AUTH_URL_TOKEN`, -`Github\Client::AUTH_HTTP_TOKEN` and `Github\Client::JWT` methods you should provide the API token in +`Github\Client::AUTH_HTTP_TOKEN`, `Github\Client::AUTH_ACCESS_TOKEN` and `Github\Client::JWT` methods you should provide the API token in `$usernameOrToken` variable (`$password` is omitted in this particular case). For the `Github\Client::AUTH_HTTP_PASSWORD`, you should provide the password of the account. When using `Github\Client::AUTH_URL_CLIENT_ID` `$usernameOrToken` should contain your client ID, and `$password` should contain client secret.