Show expiration only when explicitly requested
Fixes: #20792 Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
a08ced940f
commit
7e41aa9880
2 changed files with 1 additions and 14 deletions
|
@ -127,19 +127,6 @@ export const AdvancedSettings = ({
|
|||
units={["minute", "day", "hour"]}
|
||||
/>
|
||||
|
||||
<TokenLifespan
|
||||
id="clientOfflineSessionMax"
|
||||
name={convertAttributeNameToForm(
|
||||
"attributes.client.offline.session.max.lifespan",
|
||||
)}
|
||||
defaultValue={
|
||||
realm?.offlineSessionMaxLifespanEnabled
|
||||
? realm.offlineSessionMaxLifespan
|
||||
: undefined
|
||||
}
|
||||
units={["minute", "day", "hour"]}
|
||||
/>
|
||||
|
||||
<FormGroup
|
||||
label={t("oAuthMutual")}
|
||||
fieldId="oAuthMutual"
|
||||
|
|
|
@ -74,7 +74,7 @@ export const TokenLifespan = ({
|
|||
<SelectOption value={60}>{t(expires)}</SelectOption>
|
||||
</Select>
|
||||
</SplitItem>
|
||||
<SplitItem>
|
||||
<SplitItem hidden={!isExpireSet(field.value)}>
|
||||
<TimeSelector
|
||||
validated={
|
||||
isExpireSet(field.value) && field.value! < 1
|
||||
|
|
Loading…
Reference in a new issue