From 1b6761bf7337253b650e545e617c8ea41f988f8a Mon Sep 17 00:00:00 2001 From: Ersei Saggi Date: Fri, 1 Sep 2023 15:59:13 -0400 Subject: [PATCH] fix: add another null check in SAML for the default provider --- SSO-Auth/Api/SSOController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSO-Auth/Api/SSOController.cs b/SSO-Auth/Api/SSOController.cs index c513c98..61e2a04 100644 --- a/SSO-Auth/Api/SSOController.cs +++ b/SSO-Auth/Api/SSOController.cs @@ -664,7 +664,7 @@ public class SSOController : ControllerBase 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); return Ok(authenticationResult); }