From 8f49a81af806407faae7453e7def349dfc715c8a Mon Sep 17 00:00:00 2001 From: Mike Mell Date: Sat, 15 May 2010 01:11:41 +0800 Subject: [PATCH] When the iname is in the url (e.g. http://example.com/consumer/=mary) the Rails :id must be nullified so that the realm is valid. --- examples/rails_openid/app/controllers/consumer_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rails_openid/app/controllers/consumer_controller.rb b/examples/rails_openid/app/controllers/consumer_controller.rb index 37dd3bbd..a42b2724 100644 --- a/examples/rails_openid/app/controllers/consumer_controller.rb +++ b/examples/rails_openid/app/controllers/consumer_controller.rb @@ -46,7 +46,7 @@ def start oidreq.return_to_args['force_post']='x'*2048 end return_to = url_for :action => 'complete', :only_path => false - realm = url_for :action => 'index', :only_path => false + realm = url_for :action => 'index', :id => nil, :only_path => false if oidreq.send_redirect?(realm, return_to, params[:immediate]) redirect_to oidreq.redirect_url(realm, return_to, params[:immediate])