@boneill81 As you say, you need to create a custom user provider: https://laravel.com/docs/master/authentication#adding-custom-user-providers
The docs touch on the steps you need to take:
- Create a class that implements the
UserProvidercontract. - Extend
Authin a service provider with your new user provider. - Add a key to the
providersarray in config/auth.php for your new provider.
You’ll then be able to reference that key in conjunction with the auth middleware, i.e.
Route::group(['middleware' => 'auth:your_key'], function () {
//
});
Unfortunately, we can’t tell you what your implementation of the AuthProvider contract will look like as we don’t know how your API works. The implementation details are up to you.