Questions tagged «undertow»

1
Wildfly上的Spring Security:执行过滤器链时出错
我正在尝试将Spring Security SAML Extension与Spring Boot集成在一起。 关于此事,我确实开发了完整的示例应用程序。其源代码可在GitHub上找到: GitHub上的spring-boot-saml-integration 通过将其作为Spring Boot应用程序运行(针对SDK内置的Application Server运行),WebApp可以正常工作。 不幸的是,相同的AuthN进程在Undertow / WildFly上根本不起作用。 根据日志,IdP实际上执行AuthN过程:我的自定义UserDetails实现的指令已正确执行。尽管有执行流程,Spring仍未设置并保留当前用户的特权。 @Component public class SAMLUserDetailsServiceImpl implements SAMLUserDetailsService { // Logger private static final Logger LOG = LoggerFactory.getLogger(SAMLUserDetailsServiceImpl.class); @Override public Object loadUserBySAML(SAMLCredential credential) throws UsernameNotFoundException, SSOUserAccountNotExistsException { String userID = credential.getNameID().getValue(); if (userID.compareTo("jdoe@samplemail.com") != 0) { // We're …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.