-
1 votesanswersviews
Spring Security:SecurityContextHolder.getContext() . getAuthentication()在用户注册用户并重定向到登录页面后返回null
用户注册成功后,我尝试将用户重定向到登录页面后,尝试从SecurityContextHolder.getContext()获取Active用户.getAuthentication();返回null . 以下是我在用户成功注册时设置上下文的方法 UsernamePasswordAuthenticationToken authenticatedUser = new UsernamePasswordAu... -
0 votesanswersviews
Wildfly,JAAS和SecurityContext
我仍然在使用 BASIC auth-method 的Web应用程序中使用Wildfly-9.0.1.Final和JAAS(请参阅我之前的问题Wildfly and JAAS login module) . 当我的自定义登录模块工作时,我遇到了一些授权问题 . 我使用带注释的RESTeasy RESTFul Web服务进行测试,这里是代码: package it.bytebear.web.mongo... -
1 votesanswersviews
Symfony Service Configurator:带有security.context的getToken为NULL
我在我的项目中使用Symfony Service Configurator在实例化后配置服务(Docs),在Configure方法中我需要记录当前用户,所以我注入了容器,我试图从Security.context服务获取令牌,但我得到了总是NULL . 我也尝试在Configurator构造中仅注入Security.context但我得到了相同的结果 . 任何想法请 谢谢 . class MyCon...