public
Description: Sinatra + OpenID + OAuth
Homepage: http://kaboomerang.com
Clone URL: git://github.com/jcrosby/so.git
Search Repo:
so /
name age message
folder .gitignore Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
folder README Mon Apr 28 23:37:38 -0700 2008 Update README to reflect that a more up-to-date... [jcrosby]
folder Rakefile Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
folder app.rb Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
folder config.ru Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
folder db/ Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
folder lib/ Sat Apr 12 21:25:09 -0700 2008 Removed old .DS_Store file [jcrosby]
folder test/ Tue Apr 08 08:06:01 -0700 2008 initial import [jcrosby]
folder views/ Sat Apr 12 21:19:04 -0700 2008 Completed OpenID and OAuth flows [jcrosby]
README
So (Sinatra + OpenID + OAuth) is a work in progress.

UPDATE: An improved version of the project is now maintained as part of CloudKit and can be generated with one line. See 
the CloudKit README for details. 

MIT licensed by Jon Crosby.

This project includes an addition to the OAuth gem that adds Rack compatibility, a port of the Rails 
OpenIdAuthentication plugin, and a port of the OAuth Rails plugin.

To run:

1) mysqladmin -uroot create so_development
2) rake db:migrate
3) rake start

To sign up or login with your OpenID: http://localhost:3000/sessions/new

(Signing up and logging in are essentially the same thing.)

To add OAuth clients: http://localhost:3000/oauth_clients

To test an OAuth client, use the echo service, passing in any arbitrary parameters: http://localhost:3000/oauth/echo

TODO:

* Finish porting the tests to test/spec, using the new test helpers in Sinatra.
* Adjust the Callback URL handling so that it is optional.
* Implement the 'revoke' action for authorized clients.
* Roll this into the CloudKit generator.