Laravel Authentication: HTTP Basic Authentication
Provides a quick way to authenticate users of your application without setting up a dedicated "login" page.
A Note On FastCGI
Stateless HTTP Basic Authentication
<?php
namespace App\Http\Middleware;
use Illuminate\Support\Facades\Auth;
class AuthenticateOnceWithBasicAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, $next)
{
return Auth::onceBasic() ?: $next($request);
}
}
Related concepts
→
HTTP Basic Authentication
→