From 9b80746b3d80acfce80353c2aaccdd7622a9eda6 Mon Sep 17 00:00:00 2001 From: Richard Stiller <85484219+richard-infai@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:32:41 +0200 Subject: [PATCH] improve realm file to not switch randomly otpSupportedApplications by export (#21661) --- .../java/org/keycloak/models/utils/ModelToRepresentation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server-spi-private/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java b/server-spi-private/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java index df514a1cb3..d26f554e94 100755 --- a/server-spi-private/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java +++ b/server-spi-private/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java @@ -474,6 +474,7 @@ public class ModelToRepresentation { .stream() .filter(p -> p.supports(otpPolicy)) .map(OTPApplicationProvider::getName) + .sorted(String::compareTo) .collect(Collectors.toList())); WebAuthnPolicy webAuthnPolicy = realm.getWebAuthnPolicy();