使用 oAuth 2.0 保护基于 Jersey 的 REST 服务 [英] Securing Jersey based REST service using oAuth 2.0

查看:24
本文介绍了使用 oAuth 2.0 保护基于 Jersey 的 REST 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Jersey 库在 java/netbeans 中创建了 RESTful 服务.现在我想使用 oAuth 2.0 来保护这项服务.

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

是否有任何库或任何教程可以实现这一目标?我在 google 中找不到任何有用的东西.

Are there any libraries or any tutorial to achieve that? I couldn't find anything useful in google.

推荐答案

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

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

授权服务器和资源服务器部分解释了如何保护您的 REST 服务.

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

这篇关于使用 oAuth 2.0 保护基于 Jersey 的 REST 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆