Skip to content

Commit c381e95

Browse files
authored
Merge pull request #109 from php-http/document-auth
more verbose documentation on authentication
2 parents 817d4d1 + 958414d commit c381e95

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Authentication.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55
use Psr\Http\Message\RequestInterface;
66

77
/**
8-
* Authenticate a PSR-7 Request.
8+
* Add authentication information to a PSR-7 Request.
99
*
1010
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
1111
*/
1212
interface Authentication
1313
{
1414
/**
15-
* Authenticates a request.
15+
* Alter the request to add the authentication credentials.
1616
*
17-
* @param RequestInterface $request
17+
* To do that, the implementation might use pre-stored credentials or do
18+
* separate HTTP requests to obtain a valid token.
1819
*
19-
* @return RequestInterface
20+
* @param RequestInterface $request The request without authentication information
21+
*
22+
* @return RequestInterface The request with added authentication information
2023
*/
2124
public function authenticate(RequestInterface $request);
2225
}

0 commit comments

Comments
 (0)