I am using Laravel Passport (Laravel 5.6), using the password grant. I have two clients: app
and cms
. I want the cms
client to be able to read, write and delete. The app
client should only be able to read.
Why not use scopes for this? Because the app
client will have its username and password, and scope request, hard-coded. So it could in theory be decompiled and the scope
altered.
So I need to restrict behaviour according to the client. Is this possible in Laravel Passport?