diff --git a/services/src/main/java/org/keycloak/services/managers/ApplicationManager.java b/services/src/main/java/org/keycloak/services/managers/ApplicationManager.java index a9eecf0613..45a6dcd241 100755 --- a/services/src/main/java/org/keycloak/services/managers/ApplicationManager.java +++ b/services/src/main/java/org/keycloak/services/managers/ApplicationManager.java @@ -146,6 +146,9 @@ public class ApplicationManager { if (!applicationModel.isBearerOnly() && !applicationModel.isPublicClient()) { buffer.append(" ").append(cred).append("\n"); } + if (applicationModel.getRoles().size() > 0) { + buffer.append(" true\n"); + } buffer.append("\n"); return buffer.toString(); }