Fix rotated secret (#30331)
Signed-off-by: Andreas Blaettlinger <bln1imb@bosch.com>
This commit is contained in:
parent
780ec71672
commit
d83537005f
1 changed files with 7 additions and 1 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
Split,
|
||||
SplitItem,
|
||||
} from "@patternfly/react-core";
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useFormContext } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { PasswordInput } from "@keycloak/keycloak-ui-shared";
|
||||
|
@ -121,6 +121,12 @@ export const ClientSecret = ({ client, secret, toggle }: ClientSecretProps) => {
|
|||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (secretRotated !== client.attributes?.["client.secret.rotated"]) {
|
||||
setSecretRotated(client.attributes?.["client.secret.rotated"]);
|
||||
}
|
||||
}, [client, secretRotated]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<InvalidateConfirm />
|
||||
|
|
Loading…
Reference in a new issue