开发者

Accessing Spring Security User Details from within Mule Services

开发者 https://www.devze.com 2022-12-24 19:22 出处:网络
We\'re securing Mule services using the Spring Security Fr开发者_C百科amework, and some of the services need to access some information in the UserDetails object.Is there a way to access this object f

We're securing Mule services using the Spring Security Fr开发者_C百科amework, and some of the services need to access some information in the UserDetails object. Is there a way to access this object from within a Mule service?

Thanks, Dennis


There is only one way for the service to access the UserDetails object in Spring Security and that's through the ThreadLocal SecurityContextHolder().

0

精彩评论

暂无评论...
验证码 换一张
取 消