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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With