Add login and automatic registration; Prepare Group sync

This commit is contained in:
Daniel Seiler
2019-08-06 23:42:46 +02:00
parent 3c41b15be6
commit bda0082461
10 changed files with 334 additions and 14 deletions

View File

@ -118,7 +118,7 @@ class LoginController extends Controller
{
$socialDrivers = $this->socialAuthService->getActiveDrivers();
$authMethod = config('auth.method');
$samlEnabled = config('saml2_settings.enabled') == true;
$samlEnabled = config('services.saml.enabled') == true;
if ($request->has('email')) {
session()->flashInput([

View File

@ -37,6 +37,11 @@ class Kernel extends HttpKernel
'throttle:60,1',
'bindings',
],
'saml' => [
\BookStack\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
],
];
/**