- def auth_url(provider, uid)
- if provider == "openid"
- auth_path(:provider => "openid", :openid_url => openid_expand_url(uid), :origin => request.path)
+ def auth_url(provider, uid, referer = nil)
+ params = { :provider => provider }
+
+ params[:openid_url] = openid_expand_url(uid) if provider == "openid"
+
+ if referer.nil?
+ params[:origin] = request.path