Skip to content

Friend Oauth2 Workflow examples, includes App.net and Facebook handlers.

Notifications You must be signed in to change notification settings

cesarpinera/friend-oauth2-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

friend-oauth2-examples

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.

Running

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)

License

Distributed under the MIT License (http://dd.mit-license.org/)

Authors

About

Friend Oauth2 Workflow examples, includes App.net and Facebook handlers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published