-
Notifications
You must be signed in to change notification settings - Fork 14
Description
(As noted by Steven Parkes)
I'm using warden_oauth against both twitter and linkedin (in the context for devise, if that matters).
The problem I'm coming up against is that when I get the redirect back from the oauth provider, it again goes through all the strategies. The authenticate! for each strategy sees that it has the right URL parameter and goes on to do the find_user_by_access_token. But if the auth is through the second provider, this is wrong when checking the first provider, and it errors out because it's getting the wrong token.
Does that makes sense? The summary is that multiple oauth strategies have to be able to differentiate themselves.
Not sure the best way to do this. I could have different callback URLs, but that's getting overridden in #request_token right now.
I can hack it, but I'm wondering what you thought the best approach would be.