wilded
3/4/2020 - 9:20 AM

Accessing Laravel Passport with Postman

1 Send a Post Request to http://localhost:3000/oauth/token > Body > form-data

If oauth_clients table is empty:
Run php artisan passport:install --force

grant_type: password
client_secret: Table oauth_clients > secret 
client_id: Table oauth_clients > id (Try another id and secret if it doesn't work)
username: username
password: Password




2 Send Get Request to any API URL 
Headers > Content-Type: application/json
Headers > Authorization: Bearer bearerTocken obtained in Body of previous post

https://www.youtube.com/watch?v=isTZTfJV0-I