Mar 25th, 2011, 07:19 AM
Confused about how to get started
We have OAuth implemented on another server in .Net and we need to protect REST webservices written in Java under Spring MVC.
I don't need to implement a new OAuth server just check that requests have a valid access token. This will then talk to the .Net webservices to check.
How do I go about doing this? I have looked at the example code and documentation and haven't seen much to go on.
Can I just implement some kind of filter to do this?
Thanks for your help
Mar 25th, 2011, 10:32 AM
Basically, it's a matter of applying an instance of ProtectedResourceProcessingFilter to your REST requests.
It's a servlet filter, so you may not even need to bring in the whole spring framework, but then you'd have to wire it up and configure it by hand.
Tags for this Thread