BearerTokenAuthorization.php
11 months ago
ParsesIniTrait.php
11 months ago
RefreshableTokenProviderInterface.php
11 months ago
SsoToken.php
11 months ago
SsoTokenProvider.php
11 months ago
Token.php
11 months ago
TokenAuthorization.php
11 months ago
TokenInterface.php
11 months ago
TokenProvider.php
11 months ago
TokenAuthorization.php
25 lines
| 1 | <?php |
| 2 | namespace Aws\Token; |
| 3 | |
| 4 | use Psr\Http\Message\RequestInterface; |
| 5 | |
| 6 | /** |
| 7 | * Interface used to provide interchangeable strategies for adding authorization |
| 8 | * to requests using the various AWS signature protocols. |
| 9 | */ |
| 10 | interface TokenAuthorization |
| 11 | { |
| 12 | /** |
| 13 | * Adds the specified token to a request by adding the required headers. |
| 14 | * |
| 15 | * @param RequestInterface $request Request to sign |
| 16 | * @param TokenInterface $token Token |
| 17 | * |
| 18 | * @return RequestInterface Returns the modified request. |
| 19 | */ |
| 20 | public function authorizeRequest( |
| 21 | RequestInterface $request, |
| 22 | TokenInterface $token |
| 23 | ); |
| 24 | } |
| 25 |