[KEYCLOAK-4341] - Resources are not properly exported when exporting authorization settings
This commit is contained in:
parent
2990703aeb
commit
57c74e3f39
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ public class ExportUtils {
|
|||
Set<Resource> policyResources = policy.getResources();
|
||||
|
||||
if (!policyResources.isEmpty()) {
|
||||
List<String> resourceNames = scopes.stream().map(Scope::getName).collect(Collectors.toList());
|
||||
List<String> resourceNames = policyResources.stream().map(Resource::getName).collect(Collectors.toList());
|
||||
config.put("resources", JsonSerialization.writeValueAsString(resourceNames));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue