misc: added context

This commit is contained in:
Sheen Capadngan
2025-01-15 00:48:19 +08:00
parent 27e391f7e0
commit 80f72e8040

View File

@@ -115,6 +115,8 @@ export const superAdminServiceFactory = ({
})
);
// We do this because we do not store SAML and OIDC auth values in the user
// authMethods field and so we infer this from the user aliases
const isUserSamlAccessEnabled = isSamlConfiguredForUser && data.enabledLoginMethods.includes(LoginMethod.SAML);
const isOidcConfiguredForUser = Boolean(
await userAliasDAL.findOne({