removed login settings section for baerer only (#2064)

fixes: #1504
This commit is contained in:
Erik Jan de Wit 2022-02-18 01:41:05 +01:00 committed by GitHub
parent d56f805a4e
commit 3bf43f15c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,8 @@ export const ClientSettings = ({
result = [...result, "samlCapabilityConfig", "signatureAndEncryption"];
} else if (!client.bearerOnly) {
result = [...result, "capabilityConfig"];
} else {
return [...result, "accessSettings"];
}
return [...result, "accessSettings", "loginSettings"];
@ -74,6 +76,8 @@ export const ClientSettings = ({
)}
{protocol === "saml" && <SamlSignature />}
<FormAccess isHorizontal role="manage-clients">
{!client.bearerOnly && (
<>
<FormGroup
label={t("rootUrl")}
fieldId="kc-root-url"
@ -140,6 +144,8 @@ export const ClientSettings = ({
addButtonLabel="clients:addWebOrigins"
/>
</FormGroup>
</>
)}
<FormGroup
label={t("adminURL")}
fieldId="kc-admin-url"
@ -157,6 +163,14 @@ export const ClientSettings = ({
ref={register}
/>
</FormGroup>
{client.bearerOnly && (
<SaveReset
className="keycloak__form_actions"
name="settings"
save={save}
reset={reset}
/>
)}
</FormAccess>
<FormAccess isHorizontal role="manage-clients">
<FormGroup