More SAML debugging

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-10 12:14:22 -07:00
parent f572eaa421
commit f4e737eaf3

View file

@ -110,9 +110,13 @@ class LoginController extends Controller
*/ */
private function loginViaSaml(Request $request) private function loginViaSaml(Request $request)
{ {
\Log::debug('Attempting to login via SAML');
$saml = $this->saml; $saml = $this->saml;
$samlData = $request->session()->get('saml_login'); $samlData = $request->session()->get('saml_login');
if ($saml->isEnabled() && !empty($samlData)) { if ($saml->isEnabled() && !empty($samlData)) {
\Log::debug('SAML is enabled, and the samleData is not empty');
try { try {
Log::debug("Attempting to log user in by SAML authentication."); Log::debug("Attempting to log user in by SAML authentication.");
$user = $saml->samlLogin($samlData); $user = $saml->samlLogin($samlData);