Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Always authorizing #48

Closed
zamith opened this Issue · 16 comments

7 participants

@zamith

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

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

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

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

@wulffeld

@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.

@guilhermesimoes

@wulffeld That's it, that solved it! :thumbsup:

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

@arunagw
Owner

Thanks @wulffeld :+1:

@arunagw arunagw closed this
@zamith

@wulffeld That worked for me too. Thanks. :+1:

@cbunhok

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,

@shanmugarajan

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

@raysrashmi
Collaborator

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

@shanmugarajan

@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.

@shanmugarajan

Any suggestions please ?

@raysrashmi
Collaborator

@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

@shanmugarajan

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!

@raysrashmi
Collaborator

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

@shanmugarajan

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
Something went wrong with that request. Please try again.