I was working on upgrading JBoss EAP 6 to WildFly 10.1. In our application we are using the SPNEGO authentication mechanism in jboss-web.xml.
We are using org.jboss.security.negotiation.NegotiationAuthenticator in JBoss but in WildFly this class is removed. I didn't find any alternative class or a way to implement a similar authentication mechanism.
What is the alternative for this?
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>dsds-security-domain</security-domain>
<valve>
<class-name>org.jboss.security.negotiation.NegotiationAuthenticator</class-name>
</valve>
</jboss-web>
You should remove the
<valve>element completely from thejboss-web.xml. You don't specify an alternative in WildFly 10.x. The SPNEGO works out of the box.The authenticator is registered by Undertow integration part in WildFly.
It should even work in WildFly 10.1 without change in the
jboss-web.xml. If you leave theNegotiationAuthenticatorentry in the file You will see just a warning message in the server log.The only important change you have to care about is the
<login-config>part ofweb.xmldeployment descriptor. Now theSPNEGOname is mandatory value in<auth-method>: