File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 5
5
use Psr \Http \Message \RequestInterface ;
6
6
7
7
/**
8
- * Authenticate a PSR-7 Request.
8
+ * Add authentication information to a PSR-7 Request.
9
9
*
10
10
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
11
11
*/
12
12
interface Authentication
13
13
{
14
14
/**
15
- * Authenticates a request.
15
+ * Alter the request to add the authentication credentials .
16
16
*
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.
18
19
*
19
- * @return RequestInterface
20
+ * @param RequestInterface $request The request without authentication information
21
+ *
22
+ * @return RequestInterface The request with added authentication information
20
23
*/
21
24
public function authenticate (RequestInterface $ request );
22
25
}
You can’t perform that action at this time.
0 commit comments