Skip to content

Commit 7898663

Browse files
committed
Missing autheticate method in HttpClientInterface
1 parent 8eafe2e commit 7898663

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Github/HttpClient/HttpClientInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,15 @@ public function setOption($name, $value);
9595
* @param array $headers
9696
*/
9797
public function setHeaders(array $headers);
98+
99+
/**
100+
* Authenticate a user for all next requests
101+
*
102+
* @param string $tokenOrLogin GitHub private token/username/client ID
103+
* @param null|string $password GitHub password/secret (optionally can contain $authMethod)
104+
* @param null|string $authMethod One of the AUTH_* class constants
105+
*
106+
* @throws InvalidArgumentException If no authentication method was given
107+
*/
108+
public function authenticate($tokenOrLogin, $password, $authMethod);
98109
}

0 commit comments

Comments
 (0)