9 months ago

creating a password grant client without artisan command!(passport library)

Posted 9 months ago by winner1

I'm testing the oauth password grant type by Passport library first i made a client by this command and got a client id and secret:

php artisan passport:client --password

and i sent the following fields to /oauth/token endpoint:






and got something like this:


so far so good

but i don't know how to make this password grant client for my users because obviously, they can't access my terminal! i create a new client secret using vue components but it doesn't fork for password grant type(only works if i use it for client_credentials method)

should i add client_secret and client_id to users request as static fields(in my code) or even is really using client secret and id necessary for password grant type?

Thanks in advance

Please sign in or create an account to participate in this conversation.