Skip to content

Commit

Permalink
WFLY-3590 Allow proactive authentication to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed May 18, 2015
1 parent b63f029 commit cc86a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -165,7 +165,7 @@
<version.org.jboss.ironjacamar>1.2.4.Final</version.org.jboss.ironjacamar>
<version.org.jboss.jboss-transaction-spi>7.1.1.Final</version.org.jboss.jboss-transaction-spi>
<version.org.jboss.narayana>5.1.1.Final</version.org.jboss.narayana>
<version.org.jboss.metadata>9.0.0.Final</version.org.jboss.metadata>
<version.org.jboss.metadata>10.0.0.Beta1</version.org.jboss.metadata>
<version.org.jboss.mod_cluster>1.3.1.Final</version.org.jboss.mod_cluster>
<version.org.jboss.openjdk-orb>8.0.2.Beta2</version.org.jboss.openjdk-orb>
<version.org.jboss.xnio.netty.netty-xnio-transport>0.1.1.Final</version.org.jboss.xnio.netty.netty-xnio-transport>
Expand Down
Expand Up @@ -26,6 +26,7 @@
import io.undertow.jsp.JspFileHandler;
import io.undertow.jsp.JspServletBuilder;
import io.undertow.security.api.AuthenticationMechanism;
import io.undertow.security.api.AuthenticationMode;
import io.undertow.server.HandlerWrapper;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
Expand Down Expand Up @@ -641,6 +642,8 @@ private DeploymentInfo createServletConfig() throws StartException {
d.setExecutor(executorsByName.get(mergedMetaData.getExecutorName()).getValue());
}

d.setAuthenticationMode(mergedMetaData.isProactiveAuthentication() ? AuthenticationMode.PRO_ACTIVE : AuthenticationMode.CONSTRAINT_DRIVEN);

if (servletExtensions != null) {
for (ServletExtension extension : servletExtensions) {
d.addServletExtension(extension);
Expand Down

0 comments on commit cc86a06

Please sign in to comment.