Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

UX Tweaks

x0322050f76003f7744
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
index 3fb7a3acc4..2489be7bed 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
@@ -453,7 +453,7 @@ export const IdentityUniversalAuthForm = ({
onCheckedChange={onChange}
isChecked={value}
>
- Lockout {value ? "Enabled" : "Disabled"}
+ Lockout
</Switch>
</FormControl>
);
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
index a9cb5a1d10..b05a873cea 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
@@ -115,34 +115,41 @@ export const ViewIdentityUniversalAuthContent = ({
<IdentityAuthFieldDisplay label="Client Secret Trusted IPs">
{data.clientSecretTrustedIps.map((ip) => ip.ipAddress).join(", ")}
</IdentityAuthFieldDisplay>
- <div className="col-span-2 mt-3 flex justify-between border-b border-mineshaft-500 pb-2">
- <span className="text-bunker-300">Lockout Options</span>
- <OrgPermissionCan I={OrgPermissionIdentityActions.Edit} a={OrgPermissionSubjects.Identity}>
- {(isAllowed) => (
- <Button
- isDisabled={!isAllowed || !lockedOutState || isClearLockoutsPending}
- size="xs"
- onClick={() => clearLockouts()}
- isLoading={isClearLockoutsPending}
- colorSchema="secondary"
- >
- Reset All Lockouts
- </Button>
- )}
- </OrgPermissionCan>
- </div>
<IdentityAuthFieldDisplay label="Lockout">
{data.lockoutEnabled ? "Enabled" : "Disabled"}
</IdentityAuthFieldDisplay>
- <IdentityAuthFieldDisplay label="Lockout Threshold">
- {data.lockoutThreshold}
- </IdentityAuthFieldDisplay>
- <IdentityAuthFieldDisplay label="Lockout Duration">
- {ms(data.lockoutDurationSeconds * 1000, { long: true })}
- </IdentityAuthFieldDisplay>
- <IdentityAuthFieldDisplay label="Lockout Counter Reset">
- {ms(data.lockoutCounterResetSeconds * 1000, { long: true })}
- </IdentityAuthFieldDisplay>
+ {data.lockoutEnabled && (
+ <>
+ <div className="col-span-2 mt-3 flex justify-between border-b border-mineshaft-500 pb-2">
+ <span className="text-bunker-300">Lockout Options</span>
+ <OrgPermissionCan
+ I={OrgPermissionIdentityActions.Edit}
+ a={OrgPermissionSubjects.Identity}
+ >
+ {(isAllowed) => (
+ <Button
+ isDisabled={!isAllowed || !lockedOutState || isClearLockoutsPending}
+ size="xs"
+ onClick={() => clearLockouts()}
+ isLoading={isClearLockoutsPending}
+ colorSchema="secondary"
+ >
+ Reset All Lockouts
+ </Button>
+ )}
+ </OrgPermissionCan>
+ </div>
+ <IdentityAuthFieldDisplay label="Lockout Threshold">
+ {data.lockoutThreshold}
+ </IdentityAuthFieldDisplay>
+ <IdentityAuthFieldDisplay label="Lockout Duration">
+ {ms(data.lockoutDurationSeconds * 1000, { long: true })}
+ </IdentityAuthFieldDisplay>
+ <IdentityAuthFieldDisplay label="Lockout Counter Reset">
+ {ms(data.lockoutCounterResetSeconds * 1000, { long: true })}
+ </IdentityAuthFieldDisplay>
+ </>
+ )}
<div className="col-span-2 my-3">
<div className="mb-3 border-b border-mineshaft-500 pb-2">
<span className="text-bunker-300">Client ID</span>