KEYCLOAK-570 Add use-resource-role-mappings to WildFly installation

This commit is contained in:
Stian Thorgersen 2014-07-25 11:52:32 +01:00
parent 81dfea4052
commit 614bee3061

View file

@ -146,6 +146,9 @@ public class ApplicationManager {
if (!applicationModel.isBearerOnly() && !applicationModel.isPublicClient()) {
buffer.append(" <credential name=\"secret\">").append(cred).append("</credential>\n");
}
if (applicationModel.getRoles().size() > 0) {
buffer.append(" <use-resource-role-mappings>true</use-resource-role-mappings>\n");
}
buffer.append("</secure-deployment>\n");
return buffer.toString();
}