Use friend-oauth2 version 0.0.3.
Includes Facebook (server-side authentication), App.net and Github examples using Friend-OAuth2, an OAuth2 workflow for Friend.
Tweak the project.clj file if the handler you want to try is commented out.
:ring {:handler friend-oauth2-examples.facebook-handler/app}
;; :ring {:handler friend-oauth2-examples.appdotnet-handler/app}
;; :ring {:handler friend-oauth2-examples.github-handler/app}
Configure your client id/secret and callback url in the handler code.
(def client-config
{:client-id "<HERE>"
:client-secret "<HERE>"
:callback {:domain "http://<HERE>" :path "/<AND HERE>"}})
At that point, you should be able to start it up using lein:
lein ring server(-headless)
Distributed under the MIT License (http://dd.mit-license.org/)
- Facebook, App.net examples by ddellacosta
- Github example by kanej