octobroid / oc-oauth2-plugin

OAuth 2 plugin for OctoberCMS.
MIT License
10 stars 9 forks source link

Target [League\\OAuth2\\Server\\Repositories\\ClientRepositoryInterface] is not instantiable while building [League\\OAuth2\\Server\\AuthorizationServer] #6

Open jacksun101 opened 2 years ago

jacksun101 commented 2 years ago

I am receiving an error while calling the access_token endpoint. I am using this plugin with OctoberCMS 2.x.

Target [League\\OAuth2\\Server\\Repositories\\ClientRepositoryInterface] is not instantiable while building [League\\OAuth2\\Server\\AuthorizationServer]

Any suggestion?

jacksun101 commented 2 years ago

Hello, now I have realized that it's due to the issue of version changes. League OAuth2 Server has been updated significantly since 5.x. Anyway, I would like to update this plugin for my OctoberCMS project using Laravel 6.x. Should I go ahead with the master branch or maybe use the v2 which is on top Laravel Passport instead?

jacksun101 commented 2 years ago

Never mind, I've tried the v2 branch, and it's working. Thanks.