Removed 'revocation' section when client is SAML (#2192)
This commit is contained in:
parent
e7e882c36b
commit
c88628d4f7
1 changed files with 72 additions and 67 deletions
|
@ -179,78 +179,83 @@ export const AdvancedTab = ({
|
||||||
if (!publicClient) {
|
if (!publicClient) {
|
||||||
sections.splice(1, 1);
|
sections.splice(1, 1);
|
||||||
}
|
}
|
||||||
|
if (protocol !== openIdConnect) {
|
||||||
|
sections.splice(0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageSection variant="light" className="pf-u-py-0">
|
<PageSection variant="light" className="pf-u-py-0">
|
||||||
<ScrollForm sections={sections} borders>
|
<ScrollForm sections={sections} borders>
|
||||||
<>
|
{protocol === openIdConnect && (
|
||||||
<Text className="pf-u-pb-lg">
|
<>
|
||||||
<Trans i18nKey="clients-help:notBeforeIntro">
|
<Text className="pf-u-pb-lg">
|
||||||
In order to successfully push setup url on
|
<Trans i18nKey="clients-help:notBeforeIntro">
|
||||||
<Link to={toClient({ realm, clientId: id!, tab: "settings" })}>
|
In order to successfully push setup url on
|
||||||
{t("settings")}
|
<Link to={toClient({ realm, clientId: id!, tab: "settings" })}>
|
||||||
</Link>
|
{t("settings")}
|
||||||
tab
|
</Link>
|
||||||
</Trans>
|
tab
|
||||||
</Text>
|
</Trans>
|
||||||
<FormAccess role="manage-clients" isHorizontal>
|
</Text>
|
||||||
<FormGroup
|
<FormAccess role="manage-clients" isHorizontal>
|
||||||
label={t("notBefore")}
|
<FormGroup
|
||||||
fieldId="kc-not-before"
|
label={t("notBefore")}
|
||||||
labelIcon={
|
fieldId="kc-not-before"
|
||||||
<HelpItem
|
labelIcon={
|
||||||
helpText="clients-help:notBefore"
|
<HelpItem
|
||||||
fieldLabelId="clients:notBefore"
|
helpText="clients-help:notBefore"
|
||||||
/>
|
fieldLabelId="clients:notBefore"
|
||||||
}
|
/>
|
||||||
>
|
}
|
||||||
<InputGroup>
|
|
||||||
<TextInput
|
|
||||||
type="text"
|
|
||||||
id="kc-not-before"
|
|
||||||
name="notBefore"
|
|
||||||
isReadOnly
|
|
||||||
value={formatDate()}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
id="setToNow"
|
|
||||||
variant="control"
|
|
||||||
onClick={() => {
|
|
||||||
setNotBefore(moment.now() / 1000, "notBeforeSetToNow");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{t("setToNow")}
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
id="clear"
|
|
||||||
variant="control"
|
|
||||||
onClick={() => {
|
|
||||||
setNotBefore(0, "notBeforeNowClear");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{t("clear")}
|
|
||||||
</Button>
|
|
||||||
</InputGroup>
|
|
||||||
</FormGroup>
|
|
||||||
<ActionGroup>
|
|
||||||
{!adminUrl && (
|
|
||||||
<Tooltip
|
|
||||||
reference={pushRevocationButtonRef}
|
|
||||||
content={t("clients-help:notBeforeTooltip")}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<Button
|
|
||||||
id="push"
|
|
||||||
variant="secondary"
|
|
||||||
onClick={push}
|
|
||||||
isAriaDisabled={!adminUrl}
|
|
||||||
ref={pushRevocationButtonRef}
|
|
||||||
>
|
>
|
||||||
{t("push")}
|
<InputGroup>
|
||||||
</Button>
|
<TextInput
|
||||||
</ActionGroup>
|
type="text"
|
||||||
</FormAccess>
|
id="kc-not-before"
|
||||||
</>
|
name="notBefore"
|
||||||
|
isReadOnly
|
||||||
|
value={formatDate()}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
id="setToNow"
|
||||||
|
variant="control"
|
||||||
|
onClick={() => {
|
||||||
|
setNotBefore(moment.now() / 1000, "notBeforeSetToNow");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("setToNow")}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
id="clear"
|
||||||
|
variant="control"
|
||||||
|
onClick={() => {
|
||||||
|
setNotBefore(0, "notBeforeNowClear");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("clear")}
|
||||||
|
</Button>
|
||||||
|
</InputGroup>
|
||||||
|
</FormGroup>
|
||||||
|
<ActionGroup>
|
||||||
|
{!adminUrl && (
|
||||||
|
<Tooltip
|
||||||
|
reference={pushRevocationButtonRef}
|
||||||
|
content={t("clients-help:notBeforeTooltip")}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<Button
|
||||||
|
id="push"
|
||||||
|
variant="secondary"
|
||||||
|
onClick={push}
|
||||||
|
isAriaDisabled={!adminUrl}
|
||||||
|
ref={pushRevocationButtonRef}
|
||||||
|
>
|
||||||
|
{t("push")}
|
||||||
|
</Button>
|
||||||
|
</ActionGroup>
|
||||||
|
</FormAccess>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{publicClient && (
|
{publicClient && (
|
||||||
<>
|
<>
|
||||||
<FormAccess role="manage-clients" isHorizontal>
|
<FormAccess role="manage-clients" isHorizontal>
|
||||||
|
|
Loading…
Reference in a new issue