Skip to content

Commit

Permalink
proxy in download paper pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
eucyt committed Dec 25, 2023
1 parent e0aa378 commit 84098f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions laravel/app/Http/Middleware/BasicAuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

class BasicAuthMiddleware
{
protected $except = [
'health-check',
];

/**
* Handle an incoming request.
*
Expand All @@ -18,6 +22,12 @@ class BasicAuthMiddleware
*/
public function handle(Request $request, Closure $next): Response|RedirectResponse
{
foreach ($this->except as $except) {
if ($request->is($except)) {
return $next($request);
}
}

$username = $request->getUser();
$password = $request->getPassword();

Expand Down

0 comments on commit 84098f5

Please sign in to comment.