10-01-2015 05:03
10-01-2015 05:03
Hello, has anyone worked with oAuth2 using Clojure or Clojurescript? The only source to this I found is this. But there is no nuance when it comes to the implementation. http://leonid.shevtsov.me/en/oauth2-is-easy
Thanks in advance.
10-01-2015 11:44
10-01-2015 11:44
I've used https://github.com/r0man/oauth-clj for OAuth 1, and it worked fine. There is a `v2` namespace, but I can't vouch for its correctness.
However, the post you linked to seems fairly complete, I'm not sure what you mean by "no nuance". If you have any specific questions about it, maybe I can answer them.
10-01-2015 12:46
10-01-2015 12:46
As in do I make a new namespace copy the code and add my app key etc... Do I have the correct dependencys? And where should I call the function.
If we take this as a skeleton app http://www.javacodegeeks.com/2015/09/clojure-web-development-state-of-the-art.html
Where would I call the function. is it as simple as just adding a route? (GET "/fitbitapitest" [] (get-user-info)) ?