add $client to resolveUserByProviderCredentials#55
add $client to resolveUserByProviderCredentials#55maximepvrt wants to merge 4 commits intocoderello:masterfrom
$client to resolveUserByProviderCredentials#55Conversation
Added instructions for updating oauth_clients table.
|
can you explain why we need to add instructions here? |
|
@ankurk91, without adding this grant, I get this error : |
|
Ok. Which file you are talking about? |
|
It means you have to add the
That’s why I mentioned the warning below: if you were using v12 before, you’ll need to migrate your data model accordingly. |
|
@ankurk91 I was previously using https://github.com/adaojunior/passport-social-grant, but since the project is no longer maintained, I suggest archiving it and migrating to your library instead: adaojunior/passport-social-grant#58. In this MR, I’ve added what’s essential for my use case — access to the client instance — because depending on the client, I don’t want to allow the same social providers. Also, the |
$client to resolveUserByProviderCredentials
|
@ankurk91 did you see my reply ? |
|
i am still not confident with the changes you made, you made some breaking changes too |
|
@ankurk91 You're right : this PR would indeed introduce breaking changes, as it modifies the interface signature. It would therefore require releasing a v5. That said, this change helps maintain consistency with Laravel Passport, which also introduced the client parameter in the latest version for the password grant flow : laravel/passport#1866 |

Added instructions for updating oauth_clients table.