mlavin / django-all-access

django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.
http://readthedocs.org/docs/django-all-access/
BSD 2-Clause "Simplified" License
60 stars 29 forks source link

twitter configuration #37

Closed jnozsc closed 10 years ago

jnozsc commented 10 years ago

Hi mlavin,

I follow the document to set up this apps to django 1.6

I test facebook oauth, it works well.

But for the twitter part, I follow this instruction: https://django-all-access.readthedocs.org/en/v0.5.X/providers.html#twitter-example

It doesn't work with following message

Whoa there!
The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.

I read twitter's document https://dev.twitter.com/docs/auth/oauth I assume they change something?

Could you provide any hint to make it?

Thanks!

mlavin commented 10 years ago

I just tried the example application using the Twitter provider from the docs and didn't run into any issues.

You should check that the application you created on the Twitter Dev site has properly set the Callback URL. There is a note just below this field that notes

To restrict your application from using callbacks, leave this field blank.

Which will break the interaction with django-all-access which needs to pass the oauth_callback.

jnozsc commented 10 years ago

thanks mlavin, I will try it later

jnozsc commented 10 years ago

It works. Thanks mlavin