Skip to content

Commit 1637034

Browse files
Chore: Update OpenIDConnectClient redirect response (#8)
1 parent 89dc4ff commit 1637034

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/OpenIDConnectClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace MinVWS\OpenIDConnectLaravel;
66

7-
use Illuminate\Support\Facades\App;
7+
use Illuminate\Http\Exceptions\HttpResponseException;
8+
use Illuminate\Http\RedirectResponse;
89
use Illuminate\Support\Facades\Session;
910
use Illuminate\Support\Str;
1011
use Jumbojett\OpenIDConnectClient as BaseOpenIDConnectClient;
@@ -119,6 +120,6 @@ protected function getWellKnownConfigValue($param, $default = null): string|arra
119120
*/
120121
public function redirect($url): void
121122
{
122-
App::abort(302, '', ['Location' => $url]);
123+
throw new HttpResponseException(new RedirectResponse($url));
123124
}
124125
}

0 commit comments

Comments
 (0)