在 Java 中实现 OAuth 提供程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2150801/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Implementing OAuth provider in Java
提问by jay_soo
What is the fastest/easiest way to get an OAuth provider running in Java? Specifically, I need to authorize third-party apps to access certain web services (I'm thinking token authentication using OAuth).
让 OAuth 提供程序在 Java 中运行的最快/最简单的方法是什么?具体来说,我需要授权第三方应用程序访问某些 Web 服务(我正在考虑使用 OAuth 进行令牌身份验证)。
I've been looking at Jersey's OAuth extension, but as mentioned here, it doesn't provide a full-fledged Service Provider.
我一直在研究 Jersey 的 OAuth 扩展,但正如这里提到的,它没有提供成熟的服务提供商。
采纳答案by Paul Osman
There are a few Java libraries out there for OAuth. Specifically, I'd have a look at this one. I haven't used it myself, but there is an example for running an OAuth Service Provider.
有一些用于 OAuth 的 Java 库。具体来说,我会看看这个。我自己没有使用过,但是有一个运行 OAuth 服务提供程序的示例。
There's a list of libraries available on the OAuth website: http://oauth.net/code
OAuth 网站上有可用的库列表:http: //oauth.net/code