-
Notifications
You must be signed in to change notification settings - Fork 167
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 passing a callback_url param #107
Conversation
When building an application we need to do two types of Twitter authentication - one for signing in to our application (and creating a `User`) and another for associating Twitter accounts to their `User` account. By passing a custom `callback_url` param we can have one controller method for signing in and another one for the associating part and just have the application set the callback when starting the authentication process.
There seems to be some install errors on CI. It's also dipping under the 94% coverage limit due to not adding a test - should I add one? Also, when the request comes back from Twitter the |
Thanks for the PR. |
@raysrashmi Alright, I've tried overriding the EDIT: I got it working now, but I'm not sure if accessing the |
460e43d
to
1de0705
Compare
@bzf I think its fine to use session and I don't think there is any other way to get callback_url. 👍 for tests. |
@bzf Any update on this? |
@raysrashmi Sorry that I haven't responded! I'll try to write up a test today! |
1de0705
to
2894c8d
Compare
Added a spec in the latest commit |
2894c8d
to
4b6122a
Compare
@raysrashmi Cherry picked! 👍 |
@bzf Released a new version 1.4.0 😊 . Thank you so much for the PR ❤️ |
@raysrashmi Thanks for merging it! 😄 ❤️ |
also see #103 |
When building an application we need to do two types of Twitter
authentication - one for signing in to our application (and creating a
User
) and another for associating Twitter accounts to theirUser
account.
By passing a custom
callback_url
param we can have one controllermethod for signing in and another one for the associating part and just
have the application set the callback when starting the authentication
process.