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

Already on GitHub? Sign in to your account

Always authorizing #48

Closed
zamith opened this Issue Mar 6, 2013 · 16 comments

Comments

Projects
None yet
7 participants

zamith commented Mar 6, 2013

I'm using devise + omniauth + omniauth-twitter, and the user is always prompted with the "authorize app" window, and the URL accessed is https://api.twitter.com/oauth/authorize.

I've tried numerous ways to change this to authenticate (which I believe should be the default), with no success.

Any help?

wulffeld commented Mar 7, 2013

Have the same problem. @zamith which omniauth version are you on? I was using an oldish v1.1.1. Trying the latest 1.1.3 to see if that will work.

zamith commented Mar 7, 2013

I'm using:

omniauth (1.0.3)
omniauth-twitter (0.0.14)
devise (2.2.3)

I bundle updated it, not sure why it didn't update to the last version. I'll try to update it and see if it works.

zamith commented Mar 7, 2013

So, I've tried with 1.1.3 and the problem remains...

wulffeld commented Mar 7, 2013

@zamith There's a new option in your Twitter app settings (dev.twitter.com) you need to check. "Allow this application to be used to Sign in with Twitter". Then it works for me.

Contributor

guilhermesimoes commented Mar 18, 2013

@wulffeld That's it, that solved it! 👍

Maybe that should be added to the README? Though it seems a little bit out of the scope of the gem.

Owner

arunagw commented Mar 26, 2013

Thanks @wulffeld 👍

@arunagw arunagw closed this Mar 26, 2013

zamith commented Mar 26, 2013

@wulffeld That worked for me too. Thanks. 👍

cbunhok commented Sep 4, 2013

Dear All,

Actually, I've done what you all said, but It's still the same.
I don't know why. Any idea about this

Regards,

The same issue "authorize app" prompted only on FireFox and not on Chrome or Safari.
Appreciate your help or guidelines please ?

Collaborator

raysrashmi commented Oct 7, 2014

@shanmugarajan which version you are using? can you try with master branch

@raysrashmi I'm using omniauth-twitter-1.0.1. Catch over here is "authorize app" prompted only on FireFox and not on Chrome or Safari.

Any suggestions please ?

Collaborator

raysrashmi commented Oct 9, 2014

@shanmugarajan "Allow this application to be used to Sign in with Twitter" There is answer suggested by @wulffeld and its also include in README
Its working on all browsers including Firefox, Chrome and safari

It is prompting the 'Authorize App' only at FF when the account is not logged in already even though its second time or more..

Generally twitter only redirects to /authorize after login which is not completely in gem or at application control. But the authorize app prompt only for FF(with some parameters) but not on Chrome or Safari if you watch it keen.

Need some help to come out of this!

Collaborator

raysrashmi commented Oct 10, 2014

@shanmugarajan are you using devise with it? and what parameters you passing?

Yes i'm using devise with it.

Actually I didn't pass any parameters, but when using FF and when hitting the "sign-in with twitter" button first it goes to "https://api.twitter.com/oauth/authenticate?oauth_token=xxxxxxxx" (login page)

After login then twitter automatically redirects to the following url with these additional parameters only in FF its wired

"https://api.twitter.com/oauth/authorize?oauth_token=xxxxxxxx&session[username_or_email]=xxxxx" and prompting for 'Authorize App' (always)

At the same time when i'm trying it via Chrome or Safari first it goes to

"https://api.twitter.com/oauth/authenticate?oauth_token=xxxxxxxx" (as same as FF)

then twitter automatically redirects to

"https://api.twitter.com/oauth/authorize" with out any parameters and not prompting for 'Authorize App' and then it redirects to the callback url automatically.

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