Commit Graph

64 Commits

Author SHA1 Message Date
Daniel Stanton
abb0ae963e Include User Details for Knox responses
Knox includes User details after successful login. This should be replicated when using knox for Login and Registration.
2017-01-25 16:00:58 +00:00
Daniel Stanton
cb3c859919 KnoxTokenAuthentication won't exist unless REST_USE_KNOX 2017-01-25 13:20:51 +00:00
Daniel Stanton
b56e542e01 Made Logout All clearer 2017-01-25 13:10:51 +00:00
Daniel Stanton
a262e59b02 LogoutAllView deletes all Knox tokens 2017-01-25 13:00:42 +00:00
Daniel Stanton
fab9a7baa7 Try/except Knox Logout 2017-01-25 12:24:26 +00:00
Daniel Stanton
0db8c0dd95 Knox Login/Logout
Rather than using the Knox views themselves, to respect Session and GET settings, and because Knox logout signal shouldn't be triggered
2017-01-25 12:04:42 +00:00
Daniel Stanton
b6c267cafc Import KnoxTokenSerializer into views 2017-01-25 10:50:33 +00:00
Daniel Stanton
e1dffa4ef7 Reverted use of REST_AUTH_TOKEN_APP
This would be a breaking change, and would make it harder to use JWT and Knox simultaneously (e.g. JWT for Web, Knox for Mobile), so reverted.
2017-01-25 10:44:31 +00:00
Daniel Stanton
e9c4ecbc07 Use REST_AUTH_TOKEN_APP and remove REST_USE_JWT
Prevent simultaneous Knox and JWT use. Options are 'jwt' or 'knox'
2017-01-24 14:20:41 +00:00
Daniel Stanton
b49bb2a1aa Remove KnoxTokenSerializer import from views
As default TokenSerializer is set depending on REST_USE_KNOX
2017-01-24 13:59:17 +00:00
Daniel Stanton
64b241c93f Added KnoxTokenSerializer to app_settings 2017-01-24 12:36:19 +00:00
Maxim Kukhtenkov
971072ae37 Add sensitive_post_parameters decorator to several views 2016-12-31 12:55:19 -08:00
Maxim Kukhtenkov
aa677d51c0 PEP8 cleanup and small text fixes 2016-12-21 14:08:56 -08:00
Maxim Kukhtenkov
9df9608631 Add get_queryset method to UserDetailsView due to issue with Swagger
#275
2016-12-21 11:40:18 -08:00
Maxim Kukhtenkov
a673db87f8 Merge pull request #200 from mariuccio/master
'detail' keyword in success response messages
2016-12-21 11:12:59 -08:00
Maxim Kukhtenkov
f79537de77 Update API endpoints docs and docstring
https://github.com/Tivix/django-rest-auth/issues/280
2016-12-07 19:12:01 -05:00
Maxim Kukhtenkov
42ae22152a Remove dependency on allauth for logout on GET 2016-11-30 17:39:57 -08:00
Maxim Kukhtenkov
7fc875a4f5 Change handling for logout on GET
+ Make it require allauth
+ Add a note to docs that it’s not a recommended setting
2016-11-27 03:37:05 -08:00
Maxim Kukhtenkov
70d03e3e9b Update docstring for UserDetailsView and cleanup 2016-10-31 20:17:31 -07:00
Poderyagin Egor
2546b17067 fix import allauth error 2016-08-12 10:46:25 +03: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
Girish
22667230bb passing on the context/request to serializer 2016-04-14 12:54:50 +01:00
mariuccio
f9b6a6cd9f 'detail' keyword in success response messages 2016-03-31 10:58:14 +02:00
Maxim Kukhtenkov
e8cd780ae2 Remove unreachable code in LogoutView 2016-03-07 18:21:11 -05:00
mjaworski
2572475971 fixed code quality 2016-03-01 11:51:01 +00:00
Jon Gregorowicz
e3901516cb Merge branch 'master' into jwt-support
# Conflicts:
#	docs/changelog.rst
#	rest_auth/registration/views.py
2016-02-29 07:45:43 -05:00
mariodev
ef56efc0c8 Merge pull request #152 from caruccio/logout-on-get
Allow logout on GET
2016-02-26 13:38:01 +01:00
Jon Gregorowicz
511329c30a Fixing merge tool induced file endings 2016-02-16 00:49:41 -05:00
Jon Gregorowicz
e3a1ba520e Added tests for JWT, fixed merge issues 2016-02-16 00:42:18 -05:00
Jon Gregorowicz
f8a9cc152d Merge branch 'master' into jwt-support
# Conflicts:
#	docs/configuration.rst
#	rest_auth/registration/views.py
#	rest_auth/tests/test_api.py
#	rest_auth/utils.py
#	rest_auth/views.py
2016-02-15 23:35:32 -05:00
Nicola Hauke
152b0a6fb6 Adds ugettext_lazy to more texts
Also adds a first german translation.
2016-02-02 15:29:16 +01:00
Mateus Caruccio
70a4dc9a13 Allow logout on GET 2016-01-09 01:11:35 -02:00
Mateus Caruccio
ccc261d57f Merge branch 'master' of https://github.com/Tivix/django-rest-auth 2016-01-07 19:56:33 -02:00
Jon Gregorowicz
19e234d1dc * Added support for REST_USE_JWT
* Added JWTSerializer
* Added JWT encoding support, based on django-rest-framework-jwt
* Tests for JWT authentication
2016-01-04 12:45:33 -05:00
Mateus Caruccio
c9d55f768c Add support for custom Token model 2016-01-02 15:59:06 -02:00
mario
f3151ad5c0 Fixed try/catch in logout view 2015-11-23 22:52:59 +01:00
ron8mcr
fac959ea80 raise_exception=True for views 2015-11-23 21:04:56 +07:00
Philippe Luickx
02bf6fbe5b bugfix, request.DATA is deprecated, replaced with request.data 2015-08-07 14:31:33 +03:00
Philippe Luickx
ad94008503 appending all views with View 2015-08-07 13:54:45 +03:00
mjaworski
a60df71c07 Flake8 style fixes 2015-04-28 10:22:08 +02:00
Mateusz Sikora
8182a33c66 #23 - add test case to cover solcial auth for existing user 2015-02-27 13:56:29 +01:00
Mateusz Sikora
01ffd4127b support django-rest-framework v3.0 2015-01-09 12:05:14 +01:00
Mateusz Sikora
059b0dcbab make all endpoints browsable 2014-11-12 10:33:29 +01:00
Mateusz Sikora
644c4d28e1 Merge branch 'master' of github.com:Tivix/django-rest-auth 2014-10-24 15:52:17 +02:00
Mateusz Sikora
5825fae048 define permission classes inside views 2014-10-24 15:52:07 +02:00
Mikkel Madsen
81f435125b Fix app_settings import
The url paths
```
    url(r'^rest-auth/', include('rest_auth.urls')),
    url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
```
Weren't working for me, I kept getting an ImportError `No module named 'app_settings'`.
This fixes that issue for me on Win7 x64, Python 3.4, Django 1.7
2014-10-20 16:58:53 +02:00
Mateusz Sikora
2b5942c4ac custom serializers settings 2014-10-08 13:19:34 +02:00
Mateusz Sikora
a7be2d178b password reset and password change refactoring 2014-10-07 15:08:08 +02:00
Mateusz Sikora
85688940df create base view and serializer for social authentication 2014-10-02 16:54:55 +02:00
Mateusz Sikora
ff9fd1c3c1 cleanup tests 2014-10-02 11:40:07 +02:00