同一应用程序中的 Spring Boot OAuth 2.0 和 OAuth 1.0a 客户端 [英] Spring Boot OAuth 2.0 and OAuth 1.0a clients in same app

查看:36
本文介绍了同一应用程序中的 Spring Boot OAuth 2.0 和 OAuth 1.0a 客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人有在同一个 Spring Boot 应用程序中使用 OAuth2.0 和 OAuth 1.0a 客户端身份验证的经验吗?让 2 在同一系统中工作时遇到了一些麻烦.我们的用例 -用户可以将多个第 3 方帐户连接到我们的网络应用程序.这种连接通过 OAuth 发生,对于使用 OAuth 2.0 的 3rd 方服务,我们没有问题.现在我们想要添加 Twitter 作为受支持的连接,使用他们的 OAuth 1.0a 路径,我们在让它工作时遇到了很多麻烦.只能使用 spring-social 找到此类示例,这可能不适合我们的用例,因为它与我们的其他集成路径不兼容.

Anybody have experience using OAuth2.0 and OAuth 1.0a client authentication in same Spring Boot application? Having some trouble getting the 2 working in the same system. Our use case - User can connect multiple 3rd party accounts to our web app. This connection happens via OAuth, and in the case of 3rd party services that use OAuth 2.0, we have no problems. Now we want to add Twitter as a supported connection, with their OAuth 1.0a path we are having a lot of trouble getting this to work. Can only find examples of this using spring-social and that probably doesn't fit our use case as it isn't compatible with the rest of our integration paths.

任何经验或意见将不胜感激.

Any experience or input would be greatly appreciated.

有效.

推荐答案

我的建议,使用抄写员.他们出色地完成了让 OAutodone 跨越大量供应商的工作.转到他们的示例源代码,插入您的 appId 和密码,您几乎可以看到几乎所有的提供者都在工作

My suggestion, Use scribe. They have done an amazing job getting the OAutdone across a large base of providers. Go to their example source code, plugin your appId and secret and you can pretty much see almost all the providers working

https://github.com/scribejava

这篇关于同一应用程序中的 Spring Boot OAuth 2.0 和 OAuth 1.0a 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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