add value of unmanagedAttributePolicy to the form (#29645)

fixes: #29644

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-05-21 10:55:16 +02:00 committed by GitHub
parent bbd4b60163
commit 1a4b6090d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,6 +108,11 @@ function RealmSettingsGeneralTabForm({
const setupForm = () => { const setupForm = () => {
convertToFormValues(realm, setValue); convertToFormValues(realm, setValue);
setValue(
"unmanagedAttributePolicy",
userProfileConfig.unmanagedAttributePolicy ||
UNMANAGED_ATTRIBUTE_POLICIES[0],
);
if (realm.attributes?.["acr.loa.map"]) { if (realm.attributes?.["acr.loa.map"]) {
const result = Object.entries( const result = Object.entries(
JSON.parse(realm.attributes["acr.loa.map"]), JSON.parse(realm.attributes["acr.loa.map"]),