Securing Jersey based REST service using oAuth 2.0

后端 未结 3 1182
轻奢々
轻奢々 2020-12-13 01:08

I have created RESTful services in java/netbeans using the Jersey Library. Now i want to secure this service using oAuth 2.0.

Are there any libraries or any tutoria

相关标签:
3条回答
  • 2020-12-13 01:16

    Check this example Jersey + Oltu + Oauth: https://bitbucket.org/dobromyslov/oauth2-example/src/

    Explanation how it works is located here:

    http://blogs.steeplesoft.com/posts/2013/07/11/a-simple-oauth2-client-and-server-example-part-i/

    And here:

    http://blogs.steeplesoft.com/posts/2013/07/12/a-simple-oauth2-client-and-server-example:-part-ii/

    0 讨论(0)
  • 2020-12-13 01:34

    You can use Apache Oltu (formerly Apache Amber): https://cwiki.apache.org/confluence/display/OLTU/Documentation

    The Authorization Server and Resource Server sections explain how to secure your REST services.

    0 讨论(0)
  • 2020-12-13 01:35

    We used spring security, think is the simple and easiest way, look here for more information:

    0 讨论(0)
提交回复
热议问题