在 Java 中实现 OAuth 提供程序 [英] Implementing OAuth provider in Java

查看:33
本文介绍了在 Java 中实现 OAuth 提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让 OAuth 提供程序在 Java 中运行的最快/最简单的方法是什么?具体来说,我需要授权第三方应用访问某些网络服务(我正在考虑使用 OAuth 进行令牌身份验证).

我一直在查看 Jersey 的 OAuth 扩展,但如前所述 这里,它不提供成熟的服务提供商.

解决方案

有一些用于 OAuth 的 Java 库.具体来说,我会看看这个.我自己没有使用过,但是有一个运行 OAuth 服务提供程序的示例.

OAuth 网站上有可用的库列表:http://oauth.net/code>

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).

I've been looking at Jersey's OAuth extension, but as mentioned here, it doesn't provide a full-fledged Service Provider.

解决方案

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.

There's a list of libraries available on the OAuth website: http://oauth.net/code

这篇关于在 Java 中实现 OAuth 提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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