Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All-in-one solution for using OAuth2 with Compojure

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?

like image 466
user258030 Avatar asked Dec 15 '11 17:12

user258030


1 Answers

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

like image 126
metadaddy Avatar answered Nov 02 '22 06:11

metadaddy