将 OAuth2 与 Compojure 结合使用的一体化解决方案
我正在尝试使用一体化解决方案将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 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
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.