Module: Gappster::InstanceMethods
- Included in:
- ActionController::Base
- Defined in:
- lib/gappster.rb
Instance Method Summary collapse
Instance Method Details
#open_id_authentication(openid_url, gapps_success_path, gapps_failure_path, session_var) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gappster.rb', line 24 def open_id_authentication(openid_url, gapps_success_path, gapps_failure_path, session_var) authenticate_with_open_id(openid_url, :required => ['http://axschema.org/contact/email']) do |result, identity_url, sreg, ax| if result.successful? session[session_var] = ax['http://axschema.org/contact/email'] redirect_to gapps_success_path else redirect_to gapps_failure_path end end end |