I was searching a lot about this topic but can't find a solution.
Short description of the requirements:
Environment:
What I tried so far, is bound the AD and the Wildfly Server via ktpass, kinit, ... it works!
Tried following:
github.com/dstraub/spnego-wildfly
Is NOT working in fact, that there is no fallback (form based) and a Problem with the Java Version 1.8.0_45
sourceforge.net/p/spnego/discussion/1003769/thread/700b6941/#cb84.
Tried next:
github.com/kwart/spnego-demo
Also not working, it seems the Wildfly 8.2 has a different behavior.
WAFFLE Library: Cannot bring that to work under Wildfly, good support for Tomcat but not more.
Has someone made experience with this configuration an has a solution for that?
Here is the explanation:
I've created a webapp with following libraries included:
I've declared the Webfilter in the web.xml:
<filter>
<filter-name>SecurityFilter</filter-name>
<filter-class>waffle.servlet.NegotiateSecurityFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
public String getUserName() {
Enumeration<String> headerNames = servletRequest.getHeaderNames();
while (headerNames.hasMoreElements()) {
String headerName = headerNames.nextElement();
String headerValue = servletRequest.getHeader(headerName);
System.out.println("Header Name:" + headerName + " " + headerValue);
}
return servletRequest.getUserPrincipal().getName();
}
https://github.com/dblock/waffle/blob/master/Docs/ConfiguringBrowsers.md