diff --git a/.env.migration.example b/.env.migration.example deleted file mode 100644 index 2c5f5b957..000000000 --- a/.env.migration.example +++ /dev/null @@ -1,2 +0,0 @@ -DB_CONNECTION_URI= -AUDIT_LOGS_DB_CONNECTION_URI= diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx index 21440457a..b3347faa5 100644 --- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx +++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx @@ -51,7 +51,7 @@ const schema = z.object({ key: z.string(), value: z.string() }) - ), + ).default([{ key: "", value: "" }]), claimMetadataMapping: z .array( z.object({ @@ -59,8 +59,7 @@ const schema = z.object({ value: z.string() }) ) - .optional() - .nullable(), + .default([{ key: "", value: "" }]), boundSubject: z.string().optional().default("") }); @@ -105,7 +104,9 @@ export const IdentityOidcAuthForm = ({ accessTokenTTL: "2592000", accessTokenMaxTTL: "2592000", accessTokenNumUsesLimit: "0", - accessTokenTrustedIps: [{ ipAddress: "0.0.0.0/0" }, { ipAddress: "::/0" }] + accessTokenTrustedIps: [{ ipAddress: "0.0.0.0/0" }, { ipAddress: "::/0" }], + boundClaims: [{ key: "", value: "" }], + claimMetadataMapping: [{ key: "", value: "" }] } }); const { @@ -167,7 +168,7 @@ export const IdentityOidcAuthForm = ({ caCert: "", boundIssuer: "", boundAudiences: "", - boundClaims: [], + boundClaims: [{ key: "", value: "" }], boundSubject: "", accessTokenTTL: "2592000", accessTokenMaxTTL: "2592000", @@ -253,7 +254,7 @@ export const IdentityOidcAuthForm = ({
{ setTabValue( - ["accessTokenTrustedIps", "caCert", "boundClaims"].includes(Object.keys(fields)[0]) + ["accessTokenTrustedIps", "caCert", "claimMetadataMapping"].includes(Object.keys(fields)[0]) ? IdentityFormTab.Advanced : IdentityFormTab.Configuration ); @@ -343,63 +344,6 @@ export const IdentityOidcAuthForm = ({ )} /> - ( - - - - )} - /> - ( - - - - )} - /> - ( - - - - )} - /> - - - ( - -