Fix login and logout settings for SAML (#2947)
This commit is contained in:
parent
1dc2964757
commit
9291f3fb53
2 changed files with 92 additions and 86 deletions
|
@ -63,7 +63,7 @@ export const ClientSettings = (props: ClientSettingsProps) => {
|
|||
},
|
||||
{
|
||||
title: t("loginSettings"),
|
||||
isHidden: protocol !== "openid-connect" || client.bearerOnly,
|
||||
isHidden: client.bearerOnly,
|
||||
panel: <LoginSettingsPanel access={client.access?.configure} />,
|
||||
},
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ export const LogoutPanel = ({
|
|||
isHorizontal
|
||||
fineGrainedAccess={access?.configure}
|
||||
role="manage-clients"
|
||||
className="pf-u-pb-xl"
|
||||
className="pf-u-pb-4xl"
|
||||
>
|
||||
<FormGroup
|
||||
label={t("frontchannelLogout")}
|
||||
|
@ -101,6 +101,8 @@ export const LogoutPanel = ({
|
|||
/>
|
||||
</FormGroup>
|
||||
)}
|
||||
{protocol === "openid-connect" && (
|
||||
<>
|
||||
<FormGroup
|
||||
label={t("backchannelLogoutUrl")}
|
||||
fieldId="backchannelLogoutUrl"
|
||||
|
@ -110,7 +112,9 @@ export const LogoutPanel = ({
|
|||
fieldLabelId="clients:backchannelLogoutUrl"
|
||||
/>
|
||||
}
|
||||
helperTextInvalid={errors.attributes?.backchannel?.logout?.url?.message}
|
||||
helperTextInvalid={
|
||||
errors.attributes?.backchannel?.logout?.url?.message
|
||||
}
|
||||
validated={
|
||||
errors.attributes?.backchannel?.logout?.url?.message
|
||||
? ValidatedOptions.error
|
||||
|
@ -187,6 +191,8 @@ export const LogoutPanel = ({
|
|||
)}
|
||||
/>
|
||||
</FormGroup>
|
||||
</>
|
||||
)}
|
||||
<SaveReset
|
||||
className="keycloak__form_actions"
|
||||
name="settings"
|
||||
|
|
Loading…
Reference in a new issue