peppyheppy/janrain-rails — pull request #1 by bullfight (2012-07-05 13:14:43+00:00)
Title: Rename :return_to param to :origin

The :redirect_uri parameter that can be passed when generating an oauth token done in `Janrain::Capture::Client::Oauth`

When using Federate SSO the redirect url is specified, but origin parameter automatically appended to so it looks something like this `rr.com/session/signin?origin=rr.com`

Before I changed the return_to parameter to origin, when requesting an oauth token using the :code parameter generated by Federate SSO this was failing because it was being passed `rr.com/session/signin?return_to=rr.com` but expecting `rr.com/session/signin?origin=rr.com`

The only functional change was in
lib/janrain/config.rb

``` ruby
uri.query = "#{uri.query}#{delim}return_to=#{CGI.escape(return_to)}"
# to
uri.query = "#{uri.query}#{delim}origin=#{CGI.escape(origin)}"
```

other changes were made for consistency