将 OAuth2 与 Compojure 结合使用的一体化解决方案

发布于 2024-12-21 21:44:58 字数 219 浏览 5 评论 0原文

我正在尝试使用一体化解决方案将 compojure 应用程序与这些 OAuth2 提供商集成:LinkedIn、Facebook、Google 和 Twitter。我知道一些现有的 java 库(例如 scribe-java 或 spring-social)可以提供帮助。但从 clojure 中使用时它们很糟糕。对于我的目标,有更 clojure 友好的解决方案吗?或者有人可以向我指出有关如何实现目标的工作示例/教程吗?

I am trying to integrate a compojure application with those OAuth2 providers: LinkedIn, Facebook, Google, and Twitter, using an all in one solution. I am aware of some existing java libraries such as scribe-java or spring-social that can help. But they suck when used from clojure. Is there a more clojure friendly solution to my goal? Or can anyone point me to a working sample / tutorial on how to reach my goal?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紫轩蝶泪 2024-12-28 21:44:58

对于 OAuth 2.0,有 https://github.com/DerGuteMoritz/clj-oauth2

免责声明:我还没有尝试过,但我正准备尝试。我会回来报告我的经验,如果我在 GitHub 上获得一个示例应用程序。

好的 - 我可以报告 clj-oauth2 虽然缺乏文档,但确实有效。 我提交了 OAuth 2.0 Draft 10 支持的拉取请求(与 Force 一起使用时需要) .com,可能还有 Google)。我还将很快在我的分支上发布一个示例应用程序 https://github.com/metadaddy -sfdc/clj-oauth2

For OAuth 2.0, there's https://github.com/DerGuteMoritz/clj-oauth2

Disclaimer: I haven't tried it, but I'm just about to. I'll come back and report on my experiences, and if I get a sample app up on GitHub.

OK - I can report that clj-oauth2, while lacking in documentation, does actually work. I submitted a pull request for OAuth 2.0 Draft 10 support (required for use with Force.com, and probably Google, too). I'll also post an example app sometime soon to my fork at https://github.com/metadaddy-sfdc/clj-oauth2

最美的太阳 2024-12-28 21:44:58

https://github.com/mattrepl/clj-oauth

免责声明:我还没有尝试过这个一,我刚刚在 clojure-libraries 中找到了它。

https://github.com/mattrepl/clj-oauth

Disclaimer: I haven't tried this one, I just found it in clojure-libraries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文