Accessing Spring Security User Details from within Mule Services
-
21-09-2019 - |
Question
We're securing Mule services using the Spring Security Framework, 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
Solution
There is only one way for the service to access the UserDetails object in Spring Security and that's through the ThreadLocal SecurityContextHolder()
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow