KEYCLOAK-570 Add use-resource-role-mappings to WildFly installation
This commit is contained in:
parent
81dfea4052
commit
614bee3061
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue