parent
5cd0d51fa6
commit
c86254972b
1 changed files with 46 additions and 40 deletions
|
@ -26,6 +26,8 @@ export const LoginSettings = ({
|
||||||
const idpInitiatedSsoUrlName: string = watch(
|
const idpInitiatedSsoUrlName: string = watch(
|
||||||
"attributes.saml_idp_initiated_sso_url_name"
|
"attributes.saml_idp_initiated_sso_url_name"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const standardFlowEnabled = watch("standardFlowEnabled");
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
|
@ -62,45 +64,49 @@ export const LoginSettings = ({
|
||||||
{...rest}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup
|
{standardFlowEnabled && (
|
||||||
label={t("validRedirectUri")}
|
<>
|
||||||
fieldId="kc-redirect"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("validRedirectUri")}
|
||||||
<HelpItem
|
fieldId="kc-redirect"
|
||||||
helpText={t("clients-help:validRedirectURIs")}
|
labelIcon={
|
||||||
fieldLabelId="clients:validRedirectUri"
|
<HelpItem
|
||||||
/>
|
helpText={t("clients-help:validRedirectURIs")}
|
||||||
}
|
fieldLabelId="clients:validRedirectUri"
|
||||||
>
|
/>
|
||||||
<MultiLineInput
|
}
|
||||||
id="kc-redirect"
|
>
|
||||||
name="redirectUris"
|
<MultiLineInput
|
||||||
aria-label={t("validRedirectUri")}
|
id="kc-redirect"
|
||||||
addButtonLabel="clients:addRedirectUri"
|
name="redirectUris"
|
||||||
{...rest}
|
aria-label={t("validRedirectUri")}
|
||||||
/>
|
addButtonLabel="clients:addRedirectUri"
|
||||||
</FormGroup>
|
{...rest}
|
||||||
<FormGroup
|
/>
|
||||||
label={t("validPostLogoutRedirectUri")}
|
</FormGroup>
|
||||||
fieldId="kc-postLogoutRedirect"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("validPostLogoutRedirectUri")}
|
||||||
<HelpItem
|
fieldId="kc-postLogoutRedirect"
|
||||||
helpText={t("clients-help:validPostLogoutRedirectURIs")}
|
labelIcon={
|
||||||
fieldLabelId="clients:validPostLogoutRedirectUri"
|
<HelpItem
|
||||||
/>
|
helpText={t("clients-help:validPostLogoutRedirectURIs")}
|
||||||
}
|
fieldLabelId="clients:validPostLogoutRedirectUri"
|
||||||
>
|
/>
|
||||||
<MultiLineInput
|
}
|
||||||
id="kc-postLogoutRedirect"
|
>
|
||||||
name={convertAttributeNameToForm(
|
<MultiLineInput
|
||||||
"attributes.post.logout.redirect.uris"
|
id="kc-postLogoutRedirect"
|
||||||
)}
|
name={convertAttributeNameToForm(
|
||||||
aria-label={t("validPostLogoutRedirectUri")}
|
"attributes.post.logout.redirect.uris"
|
||||||
addButtonLabel="clients:addPostLogoutRedirectUri"
|
)}
|
||||||
stringify
|
aria-label={t("validPostLogoutRedirectUri")}
|
||||||
{...rest}
|
addButtonLabel="clients:addPostLogoutRedirectUri"
|
||||||
/>
|
stringify
|
||||||
</FormGroup>
|
{...rest}
|
||||||
|
/>
|
||||||
|
</FormGroup>{" "}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{protocol === "saml" && (
|
{protocol === "saml" && (
|
||||||
<>
|
<>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
|
@ -163,7 +169,7 @@ export const LoginSettings = ({
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{protocol !== "saml" && (
|
{protocol !== "saml" && standardFlowEnabled && (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("webOrigins")}
|
label={t("webOrigins")}
|
||||||
fieldId="kc-web-origins"
|
fieldId="kc-web-origins"
|
||||||
|
|
Loading…
Reference in a new issue