fix: add another null check in SAML for the default provider

This commit is contained in:
Ersei Saggi
2023-09-01 15:59:13 -04:00
parent eeabc3cc46
commit 1b6761bf73
+1 -1
View File
@@ -664,7 +664,7 @@ public class SSOController : ControllerBase
Guid userId = await CreateCanonicalLinkAndUserIfNotExist("saml", provider, samlResponse.GetNameID()); Guid userId = await CreateCanonicalLinkAndUserIfNotExist("saml", provider, samlResponse.GetNameID());
var authenticationResult = await Authenticate(userId, isAdmin, config.EnableAuthorization, config.EnableAllFolders, folders.ToArray(), liveTv, liveTvManagement, response, config.DefaultProvider.Trim()) var authenticationResult = await Authenticate(userId, isAdmin, config.EnableAuthorization, config.EnableAllFolders, folders.ToArray(), liveTv, liveTvManagement, response, config.DefaultProvider?.Trim())
.ConfigureAwait(false); .ConfigureAwait(false);
return Ok(authenticationResult); return Ok(authenticationResult);
} }