sfelix-martins / passport-multiauth

Add support to multi-authentication to Laravel Passport
MIT License
288 stars 51 forks source link

Added support for client_credentials grant type #103

Open aukraiser opened 5 years ago

aukraiser commented 5 years ago

Added void return type to tests methods setUp and tearDown to match Orchestra\Testbench\TestCase::setUp() and Orchestra\Testbench\TestCase::tearDown().

Changed the handle method in the AddCustomProvider middleware to override the invalidProvider call result when no provider is given in the case of a client_credentials authentication request.

Added new tests in the AddCustomProviderTest class to test the new cases.

Modified existing tests in the AddCustomProviderTest class to define use of the Request class has method.