Class: Chowder::OpenID
Constant Summary
Constants inherited from Base
Base::LOGIN_VIEW, Base::SIGNUP_VIEW
Instance Method Summary collapse
Methods inherited from Base
#authorize, #initialize, new, #render_custom_template, #return_or_redirect_to
Constructor Details
This class inherits a constructor from Chowder::Base
Instance Method Details
#host ⇒ Object
6 7 8 9 |
# File 'lib/chowder/openid.rb', line 6 def host host = env['HTTP_HOST'] || "#{env['SERVER_NAME']}:#{env['SERVER_PORT']}" "http://#{host}" end |
#setup_consumer ⇒ Object
11 12 13 14 15 |
# File 'lib/chowder/openid.rb', line 11 def setup_consumer store = ::OpenID::Store::Filesystem.new('.openid') osession = session[:openid] ||= {} @consumer = ::OpenID::Consumer.new(osession, store) end |