Skip to content

Commit cb4abc1

Browse files
authored
bug #899 Added AUTH_ACCESS_TOKEN to allowed methods (GrahamCampbell)
This PR was merged into the 2.x branch. Discussion ---------- Commits ------- af2139e Added AUTH_ACCESS_TOKEN to allowed methods
2 parents 7d676d0 + af2139e commit cb4abc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function authenticate($tokenOrLogin, $password = null, $authMethod = null
342342
throw new InvalidArgumentException('You need to specify authentication method!');
343343
}
344344

345-
if (null === $authMethod && in_array($password, [self::AUTH_URL_TOKEN, self::AUTH_URL_CLIENT_ID, self::AUTH_HTTP_PASSWORD, self::AUTH_HTTP_TOKEN, self::AUTH_JWT], true)) {
345+
if (null === $authMethod && in_array($password, [self::AUTH_URL_TOKEN, self::AUTH_URL_CLIENT_ID, self::AUTH_HTTP_PASSWORD, self::AUTH_HTTP_TOKEN, self::AUTH_ACCESS_TOKEN, self::AUTH_JWT], true)) {
346346
$authMethod = $password;
347347
$password = null;
348348
}

0 commit comments

Comments
 (0)