mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added debugging for SAML login
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f3fc81b860
commit
f572eaa421
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue