Feb 26th, 2013, 09:50 AM
Need Tipps for Spring Security Authentication with Third-Party-Service
i am a real newby with Spring and Spring Security, but i love it from the first time. And now i am standing in front of a big problem and i hope that anyone can help me out with it.
I want to use spring MVC and spring security as backend-Stack for my new webapplication. One requirement is to authenticat the user with a third-party service. This is nothing special because the logic is done and i get credentials from this service. But now i want to handle this credentials with Spring Security. Has anyone some tipps for me? How can i implement the authentication-provider?
I hope you can understand my problem and i wish anyone a nice day.
Greetings from berlin
Feb 28th, 2013, 12:42 PM
You simply need to authenticate the user and then set the SecurityContextHolder with a SecurityContext that contains an Authentication that is authenticated. For an example, see https://github.com/rwinch/getting-st...ontroller.java