Merge pull request #557 from stianst/access-code

KEYCLOAK-570 Add use-resource-role-mappings to WildFly installation
This commit is contained in:
Stian Thorgersen 2014-07-25 11:54:10 +01:00
commit 07d10ee583

View file

@ -146,6 +146,9 @@ public class ApplicationManager {
if (!applicationModel.isBearerOnly() && !applicationModel.isPublicClient()) { if (!applicationModel.isBearerOnly() && !applicationModel.isPublicClient()) {
buffer.append(" <credential name=\"secret\">").append(cred).append("</credential>\n"); 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"); buffer.append("</secure-deployment>\n");
return buffer.toString(); return buffer.toString();
} }