OAuth with Laravel 5 for password grant type with custom user table
In this video tutorial I will show you how we can use the default Laravel 5 authentication library to authenticate a user with the given user credentials from our own user table and then generate the OAuth token.
BShaffer by default authenticates username and password for the password grant type from it’s own user table which is “oauth_users”. But most of the time we will have our own user table and our own authentication mechanism to validate the user credentials. So, in this tutorial I will show you how we can by extending a PDO class of bshaffer package modify code and use Laravel 5 authentication mechanism to validate the user credentials and then generate the access token.