Change Passport client ID column
I have an API with OAuth 2 Passport. To use the API the clients (i.e. mobile app) need to get authorized via client credentials grant type. The clients request a token with an HTTP POST request with client_id and the client_secret parameters. I followed the guide in https://laravel.com/docs/5.6/passport. The client_id is the auto-incremented database id of the table oauth_clients, wich I don’t want to use. How can I make the client_id, needed in the POST request, a column of my choice and not the oauth_clients table id column? I appreciate any help, thanks
from Laravel Questions and Answers https://laravelquestions.com/laravel/change-passport-client-id-column/
via Lzo Media
No comments:
Post a Comment