简体   繁体   English

使用 oAuth 2.0 保护基于 Jersey 的 REST 服务

[英]Securing Jersey based REST service using oAuth 2.0

I have created RESTful services in java/netbeans using the Jersey Library.我使用 Jersey 库在 java/netbeans 中创建了 RESTful 服务。 Now i want to secure this service using oAuth 2.0.现在我想使用 oAuth 2.0 来保护这项服务。

Are there any libraries or any tutorial to achieve that?是否有任何图书馆或任何教程来实现这一目标? I couldn't find anything useful in google.我在谷歌中找不到任何有用的东西。

You can use Apache Oltu (formerly Apache Amber): https://cwiki.apache.org/confluence/display/OLTU/Documentation您可以使用 Apache Oltu(以前称为 Apache Amber): https ://cwiki.apache.org/confluence/display/OLTU/Documentation

The Authorization Server and Resource Server sections explain how to secure your REST services.授权服务器和资源服务器部分解释了如何保护您的 REST 服务。

We used spring security, think is the simple and easiest way, look here for more information:我们使用了spring security,认为是最简单最简单的方法,查看这里了解更多信息:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM