Skip to content

Commit

Permalink
Merge pull request #2017 from DreamD7/patch-1
Browse files Browse the repository at this point in the history
Update OdnoklassnikiResourceOwner.php
  • Loading branch information
XWB authored Dec 2, 2024
2 parents ab31cad + c14c713 commit ec311ed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/OAuth/ResourceOwner/OdnoklassnikiResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use HWI\Bundle\OAuthBundle\OAuth\Exception\HttpTransportException;
use HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken;
use Symfony\Component\HttpClient\Exception\JsonException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
Expand All @@ -37,6 +38,19 @@ final class OdnoklassnikiResourceOwner extends GenericOAuth2ResourceOwner
'lastname' => 'last_name',
];

/**
* {@inheritdoc}
*/
public function getAccessToken(Request $request, $redirectUri, array $extraParameters = [])
{
$extraParameters = array_merge([
'client_id' => $this->options['client_id'],
'client_secret' => $this->options['client_secret'],
], $extraParameters);

return parent::getAccessToken($request, $redirectUri, $extraParameters);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit ec311ed

Please sign in to comment.