README.md in sinatra-g_auth-0.0.4 vs README.md in sinatra-g_auth-0.0.5
- old
+ new
@@ -10,23 +10,20 @@
And then execute:
$ bundle
-Or install it yourself as:
-
- $ gem install sinatra-g_auth
-
## Usage
Configure the settings and register the extension to get up and running.
````ruby
class App < Sinatra::Base
register Sinatra::GAuth # add the sinatra extension to your stack
set :gauth_domain, 'example.org' # set this to your google apps domain
set :gauth_tmp_dir, './tmp' # path to a directory that's writable by your web process
set :gauth_redirect, '/' # where to redirect users after they've authenticated
+ set :gauth_openid_store, OpenID::Store::Memcache.new(Dalli::Client.new) # Pass an instance of OpenID::Store, defaults to Filestore in gauth_tmp_dir
get '/protected' do
protect_with_gauth! # add this to any route you want protected
# ...
end