Initial work on SAML integration

This commit is contained in:
Daniel Seiler
2019-08-05 20:06:39 +02:00
parent 0b1ece664d
commit 3c41b15be6
6 changed files with 400 additions and 5 deletions

View File

@ -118,6 +118,7 @@ class LoginController extends Controller
{
$socialDrivers = $this->socialAuthService->getActiveDrivers();
$authMethod = config('auth.method');
$samlEnabled = config('saml2_settings.enabled') == true;
if ($request->has('email')) {
session()->flashInput([
@ -126,7 +127,11 @@ class LoginController extends Controller
]);
}
return view('auth.login', ['socialDrivers' => $socialDrivers, 'authMethod' => $authMethod]);
return view('auth.login', [
'socialDrivers' => $socialDrivers,
'authMethod' => $authMethod,
'samlEnabled' => $samlEnabled,
]);
}
/**