Added debugging for SAML login

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-10 12:07:07 -07:00
parent f3fc81b860
commit f572eaa421
2 changed files with 5 additions and 0 deletions

View file

@ -86,7 +86,9 @@ class LoginController extends Controller
return redirect()->route('saml.login');
}
if (Setting::getSettings()->login_common_disabled == "1") {
\Log::debug('login_common_disabled is set to 1 - return a 403');
return view('errors.403');
}
@ -207,10 +209,12 @@ class LoginController extends Controller
//If the environment is set to ALWAYS require SAML, return access denied
if (config('app.require_saml')) {
\Log::debug('require SAML is enabled in the .env - return a 403');
return view('errors.403');
}
if (Setting::getSettings()->login_common_disabled == "1") {
\Log::debug('login_common_disabled is set to 1 - return a 403');
return view('errors.403');
}

View file

@ -51,6 +51,7 @@ class SamlController extends Controller
$metadata = $this->saml->getSPMetadata();
if (empty($metadata)) {
\Log::debug('SAML metadata is empty - return a 403');
return response()->view('errors.403', [], 403);
}