← All changes
|
vendor_prefixed/league/oauth2-client/src/Provider/GenericProvider.php
+12
-1
18.2
→
trunk
View file →
| @@ -66,8 +66,12 @@ | ||
| 66 | 66 | * @var string |
| 67 | 67 | */ |
| 68 | 68 | private $responseResourceOwnerId = 'id'; |
| 69 | 69 | /** |
| 70 | + * @var string|null | |
| 71 | + */ | |
| 72 | + private $pkceMethod = null; | |
| 73 | + /** | |
| 70 | 74 | * @param array $options |
| 71 | 75 | * @param array $collaborators |
| 72 | 76 | */ |
| 73 | 77 | public function __construct(array $options = [], array $collaborators = []) |
| @@ -88,9 +92,9 @@ | ||
| 88 | 92 | * @return array |
| 89 | 93 | */ |
| 90 | 94 | protected function getConfigurableOptions() |
| 91 | 95 | { |
| 92 | - return \array_merge($this->getRequiredOptions(), ['accessTokenMethod', 'accessTokenResourceOwnerId', 'scopeSeparator', 'responseError', 'responseCode', 'responseResourceOwnerId', 'scopes']); | |
| 96 | + return \array_merge($this->getRequiredOptions(), ['accessTokenMethod', 'accessTokenResourceOwnerId', 'scopeSeparator', 'responseError', 'responseCode', 'responseResourceOwnerId', 'scopes', 'pkceMethod']); | |
| 93 | 97 | } |
| 94 | 98 | /** |
| 95 | 99 | * Returns all options that are required. |
| 96 | 100 | * |
| @@ -161,8 +165,15 @@ | ||
| 161 | 165 | */ |
| 162 | 166 | protected function getScopeSeparator() |
| 163 | 167 | { |
| 164 | 168 | return $this->scopeSeparator ?: parent::getScopeSeparator(); |
| 169 | + } | |
| 170 | + /** | |
| 171 | + * @inheritdoc | |
| 172 | + */ | |
| 173 | + protected function getPkceMethod() | |
| 174 | + { | |
| 175 | + return $this->pkceMethod ?: parent::getPkceMethod(); | |
| 165 | 176 | } |
| 166 | 177 | /** |
| 167 | 178 | * @inheritdoc |
| 168 | 179 | */ |