feature: oidc support for oidc and only display saml/oidc login if enforced

This commit is contained in:
Scott Wilson
2024-10-31 15:13:13 -07:00
parent 332ca61f5d
commit df7b55606e
8 changed files with 108 additions and 17 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ export const orgServiceFactory = ({
}
if (authEnforced !== undefined) {
if (!plan?.samlSSO || !plan.oidcSSO)
if (!plan?.samlSSO && !plan.oidcSSO)
throw new BadRequestError({
message: "Failed to enforce/un-enforce SSO due to plan restriction. Upgrade plan to enforce/un-enforce SSO."
});