Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rop service中无法获取spring security oauth2 的Authentication对象 #15

Open
melin opened this issue May 31, 2014 · 0 comments
Open

Comments

@melin
Copy link

melin commented May 31, 2014

使用spring security oauth2 认证,OAuth2AuthenticationProcessingFilter 通过access_token获取到Authentication对象,设置到SecurityContextHolder.getContext().setAuthentication(authResult);中。
但AnnotationServletServiceRouter是异步方式执行service method,不在同一个线程中。System.out.println("auth = " + SecurityContextHolder.getContext().getAuthentication());
获取为空。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant