Module: Sinatra::Hellhound
- Defined in:
- lib/hellhound.rb
Defined Under Namespace
Modules: FacebookHelpers, GithubHelpers, Helpers, TwitterHelpers
Constant Summary collapse
- CACHE =
Memcached.new
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/hellhound.rb', line 160 def self.registered(app) app.enable :sessions app.disable :hellhound_cache app.helpers app.get '/auth/github' do redirect github_client.web_server.( :redirect_uri => github_redirect_uri, :scope => 'email,offline_access' ) end app.get '/auth/facebook' do redirect facebook_client.web_server.( :redirect_uri => facebook_redirect_uri, :scope => 'email,offline_access' ) end end |