| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This file is part of the league/oauth2-client library |
| 5 |
* |
| 6 |
* For the full copyright and license information, please view the LICENSE |
| 7 |
* file that was distributed with this source code. |
| 8 |
* |
| 9 |
* @copyright Copyright (c) Alex Bilbie <[email protected]> |
| 10 |
* @license http://opensource.org/licenses/MIT MIT |
| 11 |
* @link http://thephpleague.com/oauth2-client/ Documentation |
| 12 |
* @link https://packagist.org/packages/league/oauth2-client Packagist |
| 13 |
* @link https://github.com/thephpleague/oauth2-client GitHub |
| 14 |
*/ |
| 15 |
namespace YoastSEO_Vendor\League\OAuth2\Client\Grant; |
| 16 |
|
| 17 |
/** |
| 18 |
* Represents an authorization code grant. |
| 19 |
* |
| 20 |
* @link http://tools.ietf.org/html/rfc6749#section-1.3.1 Authorization Code (RFC 6749, §1.3.1) |
| 21 |
*/ |
| 22 |
class AuthorizationCode extends \YoastSEO_Vendor\League\OAuth2\Client\Grant\AbstractGrant |
| 23 |
{ |
| 24 |
/** |
| 25 |
* @inheritdoc |
| 26 |
*/ |
| 27 |
protected function getName() |
| 28 |
{ |
| 29 |
return 'authorization_code'; |
| 30 |
} |
| 31 |
/** |
| 32 |
* @inheritdoc |
| 33 |
*/ |
| 34 |
protected function getRequiredRequestParameters() |
| 35 |
{ |
| 36 |
return ['code']; |
| 37 |
} |
| 38 |
} |
| 39 |
|