At the moment, when I add a before
filter to my route like this:
Route::get('/', function() {
return View::make('front');
})->before('auth.basic');
and visit my test app (e.g. http://domain.com), I see the following in Chrome:
What I'd like to is; when the user enters the username and password and clicks the "Login In" button - run a custom credential validation routine to verify the entered details.
By custom validation routine, I mean to make a request to external API and check if entered credentials are valid and then return true
/false
to the basic auth attempt.
Is this possible? Does this involve writing a custom auth.basic
driver?