parent
d56f805a4e
commit
3bf43f15c0
1 changed files with 80 additions and 66 deletions
|
@ -54,6 +54,8 @@ export const ClientSettings = ({
|
||||||
result = [...result, "samlCapabilityConfig", "signatureAndEncryption"];
|
result = [...result, "samlCapabilityConfig", "signatureAndEncryption"];
|
||||||
} else if (!client.bearerOnly) {
|
} else if (!client.bearerOnly) {
|
||||||
result = [...result, "capabilityConfig"];
|
result = [...result, "capabilityConfig"];
|
||||||
|
} else {
|
||||||
|
return [...result, "accessSettings"];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [...result, "accessSettings", "loginSettings"];
|
return [...result, "accessSettings", "loginSettings"];
|
||||||
|
@ -74,72 +76,76 @@ export const ClientSettings = ({
|
||||||
)}
|
)}
|
||||||
{protocol === "saml" && <SamlSignature />}
|
{protocol === "saml" && <SamlSignature />}
|
||||||
<FormAccess isHorizontal role="manage-clients">
|
<FormAccess isHorizontal role="manage-clients">
|
||||||
<FormGroup
|
{!client.bearerOnly && (
|
||||||
label={t("rootUrl")}
|
<>
|
||||||
fieldId="kc-root-url"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("rootUrl")}
|
||||||
<HelpItem
|
fieldId="kc-root-url"
|
||||||
helpText="clients-help:rootUrl"
|
labelIcon={
|
||||||
fieldLabelId="clients:rootUrl"
|
<HelpItem
|
||||||
/>
|
helpText="clients-help:rootUrl"
|
||||||
}
|
fieldLabelId="clients:rootUrl"
|
||||||
>
|
/>
|
||||||
<TextInput
|
}
|
||||||
type="text"
|
>
|
||||||
id="kc-root-url"
|
<TextInput
|
||||||
name="rootUrl"
|
type="text"
|
||||||
ref={register}
|
id="kc-root-url"
|
||||||
/>
|
name="rootUrl"
|
||||||
</FormGroup>
|
ref={register}
|
||||||
<FormGroup
|
/>
|
||||||
label={t("validRedirectUri")}
|
</FormGroup>
|
||||||
fieldId="kc-redirect"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("validRedirectUri")}
|
||||||
<HelpItem
|
fieldId="kc-redirect"
|
||||||
helpText="clients-help:validRedirectURIs"
|
labelIcon={
|
||||||
fieldLabelId="clients:validRedirectUri"
|
<HelpItem
|
||||||
/>
|
helpText="clients-help:validRedirectURIs"
|
||||||
}
|
fieldLabelId="clients:validRedirectUri"
|
||||||
>
|
/>
|
||||||
<MultiLineInput
|
}
|
||||||
name="redirectUris"
|
>
|
||||||
aria-label={t("validRedirectUri")}
|
<MultiLineInput
|
||||||
addButtonLabel="clients:addRedirectUri"
|
name="redirectUris"
|
||||||
/>
|
aria-label={t("validRedirectUri")}
|
||||||
</FormGroup>
|
addButtonLabel="clients:addRedirectUri"
|
||||||
<FormGroup
|
/>
|
||||||
label={t("homeURL")}
|
</FormGroup>
|
||||||
fieldId="kc-home-url"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("homeURL")}
|
||||||
<HelpItem
|
fieldId="kc-home-url"
|
||||||
helpText="clients-help:homeURL"
|
labelIcon={
|
||||||
fieldLabelId="clients:homeURL"
|
<HelpItem
|
||||||
/>
|
helpText="clients-help:homeURL"
|
||||||
}
|
fieldLabelId="clients:homeURL"
|
||||||
>
|
/>
|
||||||
<TextInput
|
}
|
||||||
type="text"
|
>
|
||||||
id="kc-home-url"
|
<TextInput
|
||||||
name="baseUrl"
|
type="text"
|
||||||
ref={register}
|
id="kc-home-url"
|
||||||
/>
|
name="baseUrl"
|
||||||
</FormGroup>
|
ref={register}
|
||||||
<FormGroup
|
/>
|
||||||
label={t("webOrigins")}
|
</FormGroup>
|
||||||
fieldId="kc-web-origins"
|
<FormGroup
|
||||||
labelIcon={
|
label={t("webOrigins")}
|
||||||
<HelpItem
|
fieldId="kc-web-origins"
|
||||||
helpText="clients-help:webOrigins"
|
labelIcon={
|
||||||
fieldLabelId="clients:webOrigins"
|
<HelpItem
|
||||||
/>
|
helpText="clients-help:webOrigins"
|
||||||
}
|
fieldLabelId="clients:webOrigins"
|
||||||
>
|
/>
|
||||||
<MultiLineInput
|
}
|
||||||
name="webOrigins"
|
>
|
||||||
aria-label={t("webOrigins")}
|
<MultiLineInput
|
||||||
addButtonLabel="clients:addWebOrigins"
|
name="webOrigins"
|
||||||
/>
|
aria-label={t("webOrigins")}
|
||||||
</FormGroup>
|
addButtonLabel="clients:addWebOrigins"
|
||||||
|
/>
|
||||||
|
</FormGroup>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("adminURL")}
|
label={t("adminURL")}
|
||||||
fieldId="kc-admin-url"
|
fieldId="kc-admin-url"
|
||||||
|
@ -157,6 +163,14 @@ export const ClientSettings = ({
|
||||||
ref={register}
|
ref={register}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
{client.bearerOnly && (
|
||||||
|
<SaveReset
|
||||||
|
className="keycloak__form_actions"
|
||||||
|
name="settings"
|
||||||
|
save={save}
|
||||||
|
reset={reset}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</FormAccess>
|
</FormAccess>
|
||||||
<FormAccess isHorizontal role="manage-clients">
|
<FormAccess isHorizontal role="manage-clients">
|
||||||
<FormGroup
|
<FormGroup
|
||||||
|
|
Loading…
Reference in a new issue