I am trying to implement Resource Owner Password Credentials Grant in my laravel 5.6 / passport application. I have set all the basic configurations. I want the user to be able to pass only their username and password and have the authentication server pass in the grant type, client_secret
, and client_id
to the passport route http://dev.api.com/oauth/token
This is my routes file:
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/login', 'IssueTokensController@login')->name('get.token');
I want the IssueTokensController to prepopulate client_id
, client_secret
from an env file and redirect to the passport route. Any advice would be helpful
IssueTokensController@login
really do? – Wahyu Kristianto