I am trying to integrate Oauth2 authentication and found Taylor Otwell did a nice work for it with Laravel Passport. I am trying to integrate the same to create REST API, I google for integration and found a nice library for integration with link below.
https://github.com/dusterio/lumen-passport
I started work and follow the easy steps given by the author on github and composer package website. it starts and his given links are working.
I try to search over google but I do not found anything that show how can I integrate it.
But I do not found anything to generate token by providing username and password?
If you are using Lumen you don't need to integrate Laravel Passport there is a lumen passport available on github
https://github.com/dusterio/lumen-passport
It will work fine with Lumen.
Thanks!