Any Spring Framework support for REST security?

寵の児 提交于 2019-12-23 12:00:03

问题


I am about to implement security for my RESTful services based on the Spring framework. Actually, I have never secured RESTful WS before, but I've got myself a good introduction here. Basically, Amazon S3 or even OAuth are suggested as good examples.

My questions:

  1. Does the Spring framework provide these strategies out-of-the-box?
  2. If yes: Is it Spring security that implements these strategies?
  3. If no: How would you suggest to implement these strategies (OAuth ...) with Spring?

Thanks in advance for any suggestion.

Er


回答1:


It is definitely Spring Security that you're looking for. It provides an excellent way of securing the invocations of your RESTful spring-mvc controllers.

oAuth is in the business of federated authorization, which is what you need when you're building an application that requires its users to give your application permission to access a portion of their private data that lives in the cloud, e.g their gmail contacts or their Google Calendar.



来源:https://stackoverflow.com/questions/3172822/any-spring-framework-support-for-rest-security

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!