Changeset 9207
- Timestamp:
- 04/02/08 03:33:33 (8 months ago)
- Files:
-
- plugins/open_id_authentication/init.rb (modified) (1 diff)
- plugins/open_id_authentication/lib/open_id_authentication.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/open_id_authentication/init.rb
r9103 r9207 1 begin 2 require 'openid'3 rescue LoadError 1 if config.respond_to?(:gems) 2 config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.0.4' 3 else 4 4 begin 5 gem 'ruby-openid', '>=2.0.4' 6 rescue Gem::LoadError 7 puts "Install the ruby-openid gem to enable OpenID support" 5 require 'openid' 6 rescue LoadError 7 begin 8 gem 'ruby-openid', '>=2.0.4' 9 rescue Gem::LoadError 10 puts "Install the ruby-openid gem to enable OpenID support" 11 end 8 12 end 9 13 end 10 14 11 ActionController::Base.send :include, OpenIdAuthentication 15 config.to_prepare do 16 ActionController::Base.send :include, OpenIdAuthentication 17 end plugins/open_id_authentication/lib/open_id_authentication.rb
r9169 r9207 102 102 def complete_open_id_authentication 103 103 params_with_path = params.reject { |key, value| request.path_parameters[key] } 104 params_with_path.delete(:format) 104 105 open_id_response = timeout_protection_from_identity_server { open_id_consumer.complete(params_with_path, requested_url) } 105 106 identity_url = normalize_url(open_id_response.endpoint.claimed_id) if open_id_response.endpoint.claimed_id