我正在努力使用 OAuth2 向其他客户端提供 Jersey Web 服务,但很难找到与 Jersey 完美结合的库。到目前为止,我已经查看了以下库。
http://static.springsource.org/spring-security/oauth/support.html
我们让演示工作正常,但不想使用 spring security。
https://labs.ericsson.com/apis/oauth2-framework/downloads
这与 RESTLet 紧密相关。
http://wiki.apache.org/incubator/AmberProposal
我们简单地浏览了一下,但很难判断该项目的状态。
https://bitbucket.org/smartproject/oauth-2.0/wiki/Home
我们也刚刚开始研究这个。
我们的主要目标是与 Jersey 作为资源提供者进行简单集成。
最佳答案
我们最终使用了 Amber,根据需要修改了集成测试的端点。
oauth-2.0/integration-tests/src/test/java/org/apache/oltu/oauth2/integration/endpoints/
关于jersey - 对 OAuth2 库与 Jersey 集成的建议?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4652146/