django-rest-auth/rest_auth
Tevin Joseph K O 1af16ae7ba Added a Serializer for Twitter oauth
Added a serializer for twitter OAuth to work. If you are not using this it will cause an error ('TwitterOAuthAdapter' object has no attribute 'parse_token'). It happens because method parse_token() is implemented in OAuth2Adapter, but Twitter uses OAuth 1.0, so TwitterOAuthAdapter inherits from OAuthAdapter, which doesn't have parse_token() method. Example usage is given below:

class TwitterLogin(LoginView):
    serializer_class = TwitterLoginSerializer
    adapter_class = TwitterOAuthAdapter
2016-01-13 12:43:12 +05:30
..
registration Return token only when verification is mandatory 2016-01-11 22:33:14 +01:00
tests Return token only when verification is mandatory 2016-01-11 22:33:14 +01:00
__init__.py First commit. 2014-04-30 12:52:05 -07:00
admin.py First commit. 2014-04-30 12:52:05 -07:00
app_settings.py Add support for custom Token model 2016-01-02 15:59:06 -02:00
models.py Add support for custom Token model 2016-01-02 15:59:06 -02:00
serializers.py Merge branch 'master' of https://github.com/Tivix/django-rest-auth 2016-01-07 19:56:33 -02:00
social_serializers.py Added a Serializer for Twitter oauth 2016-01-13 12:43:12 +05:30
urls.py closes PR #134 and adds same syntax to demo 2016-01-04 16:29:47 -08:00
utils.py Merge branch 'master' of https://github.com/Tivix/django-rest-auth 2016-01-07 19:56:33 -02:00
views.py Merge branch 'master' of https://github.com/Tivix/django-rest-auth 2016-01-07 19:56:33 -02:00