Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for renaming/disabling of origin param #912

Merged
merged 4 commits into from Sep 28, 2017
Merged

Conversation

tmilewski
Copy link
Member

@tmilewski tmilewski commented Sep 28, 2017

This PR allows for renaming or disabling of the origin param per the issue (#910) that @97jaz submitted. [Backwards Compatible]

Examples

Default Flow:

# https://www.domain.com/auth/twitter/?origin=[URL]
# No change

Renaming Origin Param:

# https://www.domain.com/auth/twitter/?return_to=[URL]
provider :twitter, ENV['KEY'], ENV['SECRET'], origin_param: 'return_to'

Disabling Origin Param:

# https://www.domain.com/auth/twitter
# Redirects handled externally, `omniauth.origin` is not set
provider :twitter, ENV['KEY'], ENV['SECRET'], origin_param: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant