Skip to content
Permalink
Browse files

[WFLY-11931] The deployment needs to be granted the ElytronPermission…

…("getSecurityDomain") as it uses it directly in this test.
  • Loading branch information
darranl committed Apr 4, 2019
1 parent e00cc54 commit 052537f7e83f2b019f62f1590e97242dbbb40f40
@@ -17,6 +17,7 @@
package org.wildfly.test.integration.elytron.realm;

import static javax.servlet.http.HttpServletResponse.SC_OK;
import static org.jboss.as.test.shared.integration.ejb.security.PermissionUtils.createPermissionsXmlAsset;
import static org.junit.Assert.assertEquals;

import java.net.URL;
@@ -50,6 +51,7 @@
import org.wildfly.security.password.interfaces.BCryptPassword;
import org.wildfly.security.password.spec.EncryptablePasswordSpec;
import org.wildfly.security.password.spec.IteratedSaltedPasswordAlgorithmSpec;
import org.wildfly.security.permission.ElytronPermission;
import org.wildfly.test.security.common.AbstractElytronSetupTask;
import org.wildfly.test.security.common.elytron.ConfigurableElement;
import org.wildfly.test.security.common.elytron.ConstantRealmMapper;
@@ -82,7 +84,10 @@ public static WebArchive deployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, DEPLOYMENT + ".war");
war.addClasses(JdbcTestServlet.class);
war.addAsWebInfResource(JdbcRealmTestCase.class.getPackage(), "jdbc-realm-web.xml", "web.xml");
war.addAsWebInfResource(Utils.getJBossWebXmlAsset(DEPLOYMENT), "jboss-web.xml");
war.addAsWebInfResource(Utils.getJBossWebXmlAsset(DEPLOYMENT), "jboss-web.xml")
.addAsManifestResource(createPermissionsXmlAsset(
new ElytronPermission("getSecurityDomain")),
"permissions.xml");
return war;
}

0 comments on commit 052537f

Please sign in to comment.
You can’t perform that action at this time.