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

Can x_auth_access_type parameter be used in initializer? #14

Closed
dsample opened this issue Mar 3, 2012 · 4 comments
Closed

Can x_auth_access_type parameter be used in initializer? #14

dsample opened this issue Mar 3, 2012 · 4 comments

Comments

@dsample
Copy link

dsample commented Mar 3, 2012

I've tried to find a way to get the x_auth_access_type paremeter passed to Twitter's request_token API method, but I can't seem to find any way. Is there a way? My application is registered for read+write access, but I want to allow normal users to authorize just read access, so I want to pass x_auth_access_type="read".

I managed to get the parameter added to the authorize URL, but that doesn't work.

It would be nice if it were like the google_oauth2 strategy, able to add the parameter within the initializer.

@lkosak
Copy link

lkosak commented Mar 7, 2012

Hey @dsample, did you ever figure out a solution to this?

@dsample
Copy link
Author

dsample commented Mar 7, 2012

@lkosak No, unfortunately not. I tried looking into the code myself, but between this 'strategy' and omniauth itself I can't seem to follow the logic through to figure out what should be changed.

@lkosak
Copy link

lkosak commented Mar 7, 2012

Ah word, thanks man. Ended up just changing the default for that app in the twitter dashboard--didn't realize you could do that.

@arunagw
Copy link
Owner

arunagw commented Apr 21, 2012

Sorry for very late reply.

I have done something for which you want. For me it's working. Please give a try at your side if it works for you i will merge into master and do a release.

it's here https://github.com/arunagw/omniauth-twitter/tree/x_auth_access_type

Branch name : x_auth_access_type

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

No branches or pull requests

3 participants