improve realm file to not switch randomly otpSupportedApplications by export (#21661)

This commit is contained in:
Richard Stiller 2023-07-18 15:32:41 +02:00 committed by GitHub
parent 62d949fdcf
commit 9b80746b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,6 +474,7 @@ public class ModelToRepresentation {
.stream() .stream()
.filter(p -> p.supports(otpPolicy)) .filter(p -> p.supports(otpPolicy))
.map(OTPApplicationProvider::getName) .map(OTPApplicationProvider::getName)
.sorted(String::compareTo)
.collect(Collectors.toList())); .collect(Collectors.toList()));
WebAuthnPolicy webAuthnPolicy = realm.getWebAuthnPolicy(); WebAuthnPolicy webAuthnPolicy = realm.getWebAuthnPolicy();