README.md in warden-googleapps-0.0.2 vs README.md in warden-googleapps-0.0.3

- old
+ new

@@ -3,21 +3,36 @@ A Warden middleware for google apps. It needs a little work but definitely authenticates you just fine in Rack apps. Example ======= +Gemfile +------- + source :gemcutter + gem 'haml', '~>2.2.0' + gem 'sinatra', '~>0.9.4' + gem 'ruby-openid', :require => 'openid', :git => 'git://github.com/pelle/ruby-openid.git' + gem 'warden-googleapps', '=0.0.3' + + group :development do + gem 'shotgun' + end + +app.rb +------ module DirectoryAdmin class App < Sinatra::Default disable :show_errors disable :show_exceptions use Warden::Manager do |manager| manager.default_strategies :google_apps manager.failure_app = BadAuthentication - manager.config[:google_apps_domain] = 'example.org' + manager[:google_apps_domain] = 'example.org' + # manager[:google_apps_endpoint] = 'http://www.google.com/accounts/o8/id' # this is gmail end helpers do def ensure_authenticated unless env['warden'].authenticate! @@ -47,17 +62,20 @@ haml "%h3= 'Unable to authenticate, sorry bud.'" end end end - -Enabling on Google +Enabling on GMail ================== +It should just work, even for localhost. + +Enabling on Google Apps for Domains +=================================== Be sure you have Federated Login using OpenID enabled under your Advanced Settings Tab ![Your Google Apps Admin Dashboard](http://img.skitch.com/20100103-cdjtbyyw2xsbwya92r6gcd47hr.jpg "Check the box to enable") Developing ========== % gem install bundler - % gem bundle - % bin/rake repackage + % bundle install + % bundle exec rake repackage