Hi
There is a missing abstract method named "validateClient" and it needs to be declared/implemented in: simple_oauth\Repositories\ClientRepository.php class
Thanks,
Issue fork simple_oauth-3089447
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ecj commentedSame problem in v4.3
Comment #3
ecj commentedpossibly fixed it - can this please be verified??
simple_oauth-8.x-4.3/src/Repositories/ClientRepository.php
line 7, replace:
use League\OAuth2\Server\Grant\ClientCredentialsGrant;
line 10, REPLACE class ClientRepository implements ClientRepositoryInterface WITH:
class ClientRepository extends ClientCredentialsGrant {
no more error here, but is this correct??
Now I get consumer error, Field roles not found...
Comment #4
minoroffense commentedI think what we actually want to do (based on the docs here: https://oauth2.thephpleague.com/client-repository-interface/) is move some of the validation you see in the getClientEntity() method into the validateClient() method.
For example (btw, this is untested code):
In the original getClientEntity() method there is a validation of the secret. I think we just have to move that logic to its own method and call it.
Comment #5
paul121 commentedLooking into this a bit further, it looks like the validateClient() method was introduced in league/oauth2-server v8.0. There is another issue for upgrading to 8.0: https://www.drupal.org/project/simple_oauth/issues/3083411
Comment #6
bradjones1Related to dependency drift, marking duplicate and relating main issue.