diff --git a/messages/en-US.json b/messages/en-US.json
index 58a772967..91cf42c53 100644
--- a/messages/en-US.json
+++ b/messages/en-US.json
@@ -176,7 +176,11 @@
"resourcePolicyName": "Policy Name",
"resourcePolicyNameDescription": "Give this policy a name to identify it across your resources",
"resourcePolicyNamePlaceholder": "e.g. Internal Access Policy",
- "policiesSeeAll": "See All Policies",
+ "resourcePoliciesSeeAll": "See All Policies",
+ "resourcePolicyAuthMethodAdd": "Add Authentication Method",
+ "resourcePolicyOtpEmailAdd": "Add OTP emails",
+ "resourcePolicyRulesAdd": "Add Rules",
+ "rulesResourcePolicyDescription": "Configure rules to control access resources associated to this policy",
"authentication": "Authentication",
"protected": "Protected",
"notProtected": "Not Protected",
diff --git a/src/app/[orgId]/settings/(private)/resources/policies/create/page.tsx b/src/app/[orgId]/settings/(private)/resources/policies/create/page.tsx
index e43ef39ee..19fd2ca37 100644
--- a/src/app/[orgId]/settings/(private)/resources/policies/create/page.tsx
+++ b/src/app/[orgId]/settings/(private)/resources/policies/create/page.tsx
@@ -35,7 +35,7 @@ export default async function CreateResourcePolicyPage(
diff --git a/src/components/CreatePolicyForm.tsx b/src/components/CreatePolicyForm.tsx
index 96154edfe..01d56fa46 100644
--- a/src/components/CreatePolicyForm.tsx
+++ b/src/components/CreatePolicyForm.tsx
@@ -88,7 +88,8 @@ import {
Check,
ChevronsUpDown,
InfoIcon,
- Key
+ Key,
+ Plus
} from "lucide-react";
import { useTranslations } from "next-intl";
@@ -314,8 +315,8 @@ function PolicyUsersRolesSection({
allIdps
}: PolicyUsersRolesSectionProps) {
const t = useTranslations();
- const [ssoEnabled, setSsoEnabled] = useState(true);
- const [selectedIdpId, setSelectedIdpId] = useState(null);
+ const ssoEnabled = form.watch("sso");
+ const selectedIdpId = form.watch("skipToIdpId");
const [activeRolesTagIndex, setActiveRolesTagIndex] = useState<
number | null
>(null);
@@ -338,9 +339,8 @@ function PolicyUsersRolesSection({
{
- setSsoEnabled(val);
form.setValue("sso", val);
}}
/>
@@ -445,11 +445,9 @@ function PolicyUsersRolesSection({