pkce no longer appears in src/Provider/AbstractProvider.php
drennvinn opened this issue · 4 comments
drennvinn commented
Hello, I installed the project via composer (2.6.1) and started using it as described here but found out that AbstractProvider.php no longer had support for PKCE when I wanted to use
$provider = new \League\OAuth2\Client\Provider\GenericProvider([
// ...
// other options
// ...
'pkceMethod' => \League\OAuth2\Client\Provider\GenericProvider::PKCE_METHOD_S256
]);So when i navigate to https://github.com/thephpleague/oauth2-client/blob/master/src/Provider/AbstractProvider.php i can found setPkceCode(), getPkceCode(), etc... but not in the sources after composer install
megaxorg commented
Composer installs v2.6.1 from December 2021. PKCE support was added on Sep 12, 2022.
rhertogh commented
@drennvinn As @megaxorg mentioned the latest changes aren't released yet.
In the meantime you can use this workaround.
carlituxman commented
Trying the PR 43c59dd it works.
ramsey commented
PKCE support is now available in version 2.7.0.