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
149 150 151 152 |
# File 'lib/chowder.rb', line 149 def host host = env['HTTP_HOST'] || "#{env['SERVER_NAME']}:#{env['SERVER_PORT']}" "http://#{host}" end |
#setup_consumer ⇒ Object
154 155 156 157 158 |
# File 'lib/chowder.rb', line 154 def setup_consumer store = ::OpenID::Store::Filesystem.new('.openid') osession = session[:openid] ||= {} @consumer = ::OpenID::Consumer.new(osession, store) end |