I developed a complete sample application, all the source code is published on GitHub: spring-boot-saml-integration on GitHub
By running the webapp as Spring Boot application (through STS, by using an embedded Application Server) it works fine (with the exception of Single-Logout and Global Logout on IdP). Unfortunately, the auth process doesn't work on WildFly (and I must use it as production AS): the IdP performs the AuthN process and the instructions of my custom UserDetails implementation are correctly executed. Despite that Spring doesn't set up the privileges for the current user.
By debugging, I checked that the problem starts from
FilterChainProxy class. When I run the webapp on WildFly, I can see that the attribute
ServletRequest is null, thus Spring clears the
How can I fix this problem?
how does your filter mapping look like?
as looking at your code i could not find anything that would look like it.
you are doing programmatic filter / servlet registration?