Skip to content

Commit

Permalink
Chore: Update OpenIDConnectClient redirect response (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklambrechts authored Jun 15, 2023
1 parent 89dc4ff commit 1637034
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

namespace MinVWS\OpenIDConnectLaravel;

use Illuminate\Support\Facades\App;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str;
use Jumbojett\OpenIDConnectClient as BaseOpenIDConnectClient;
Expand Down Expand Up @@ -119,6 +120,6 @@ protected function getWellKnownConfigValue($param, $default = null): string|arra
*/
public function redirect($url): void
{
App::abort(302, '', ['Location' => $url]);
throw new HttpResponseException(new RedirectResponse($url));
}
}

0 comments on commit 1637034

Please sign in to comment.