Commit Graph

10 Commits

Author SHA1 Message Date
Maxim Kukhtenkov
fed6b9840c Refactor social connect views and serializers
# 347
2018-01-18 21:08:41 -05:00
Aleksi Häkli
8a4afe746c
Implement connect social accounts functionality
Add serializers and views for connecting accounts with minimal
specialization of the existing django-rest-auth interfaces.

Also add viewset which enables listing social account infmration
via the REST API for social authentication driven client applications.

Resolves #347 in GitHub.
2018-01-18 16:56:42 +02:00
Maxim Kukhtenkov
aa677d51c0 PEP8 cleanup and small text fixes 2016-12-21 14:08:56 -08:00
Maxim Kukhtenkov
5bcf31f545 Remove redundant required=True from serializer fields 2016-12-21 13:47:24 -08:00
Maxim Kukhtenkov
37375461df Add info to docs and comments
+ Add comments by @chubz regarding django-allauth hmac pattern from PR #233
+ Cleanup
2016-10-24 14:23:44 -07:00
mariodev
c5e0382d25 Increased test coverage (#229)
* Added twitter login test

* pep8

* Fixes missing backend attr issue

* Refactored login process

* pep8

* Added more tests for twitter social login
2016-07-18 07:06:28 +02:00
Mario Rodas
0737da0077 Capture OAuthError in TwitterLoginSerializer 2016-03-02 15:00:26 -05:00
Mario Rodas
86a487fe21 Import allauth.socialaccount only when declared in INSTALLED_APPS
Don't silently ignore ImportError
2016-03-02 14:37:27 -05:00
Tevin Joseph K O
b2edfffc91 fixed pep8 error in social_serializers
fixed pep8 error in social_serializers which cause documentation build error
2016-02-23 17:52:44 +05:30
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