mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 06:28:11 +00:00
fix lint
This commit is contained in:
+18
-10
@@ -46,12 +46,14 @@ const schema = z.object({
|
|||||||
caCert: z.string().trim().default(""),
|
caCert: z.string().trim().default(""),
|
||||||
boundIssuer: z.string().min(1),
|
boundIssuer: z.string().min(1),
|
||||||
boundAudiences: z.string().optional().default(""),
|
boundAudiences: z.string().optional().default(""),
|
||||||
boundClaims: z.array(
|
boundClaims: z
|
||||||
z.object({
|
.array(
|
||||||
key: z.string(),
|
z.object({
|
||||||
value: z.string()
|
key: z.string(),
|
||||||
})
|
value: z.string()
|
||||||
).default([{ key: "", value: "" }]),
|
})
|
||||||
|
)
|
||||||
|
.default([{ key: "", value: "" }]),
|
||||||
claimMetadataMapping: z
|
claimMetadataMapping: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
@@ -254,7 +256,9 @@ export const IdentityOidcAuthForm = ({
|
|||||||
<form
|
<form
|
||||||
onSubmit={handleSubmit(onFormSubmit, (fields) => {
|
onSubmit={handleSubmit(onFormSubmit, (fields) => {
|
||||||
setTabValue(
|
setTabValue(
|
||||||
["accessTokenTrustedIps", "caCert", "claimMetadataMapping"].includes(Object.keys(fields)[0])
|
["accessTokenTrustedIps", "caCert", "claimMetadataMapping"].includes(
|
||||||
|
Object.keys(fields)[0]
|
||||||
|
)
|
||||||
? IdentityFormTab.Advanced
|
? IdentityFormTab.Advanced
|
||||||
: IdentityFormTab.Configuration
|
: IdentityFormTab.Configuration
|
||||||
);
|
);
|
||||||
@@ -499,9 +503,13 @@ export const IdentityOidcAuthForm = ({
|
|||||||
content={
|
content={
|
||||||
<div className="w-[180px]">
|
<div className="w-[180px]">
|
||||||
<p>Map OIDC token claims to metadata fields</p>
|
<p>Map OIDC token claims to metadata fields</p>
|
||||||
<p className="text-sm mt-2">Example:</p>
|
<p className="mt-2 text-sm">Example:</p>
|
||||||
<p className="text-sm mt-1">'role' → 'token.groups'</p>
|
<p className="mt-1 text-sm">
|
||||||
<p className="text-xs text-gray-400 mt-1">Becomes: identity.metadata.oidc.claims.role</p>
|
'role' → 'token.groups'
|
||||||
|
</p>
|
||||||
|
<p className="mt-1 text-xs text-gray-400">
|
||||||
|
Becomes: identity.metadata.oidc.claims.role
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user