Commit Graph

60 Commits

Author SHA1 Message Date
mario
bb3b082895
Merge pull request #345 from gbezyuk/master
LoginView.get_response modified in order to respect rest_framework_jwt.JWT_AUTH_COOKIE setting
2019-03-16 14:57:01 +01:00
Jasper Wan
a3d38f4c59 disable django_logout if REST_SESSION_LOGIN is False 2019-02-03 11:42:24 +08:00
Steven Loria
b34250ec94
Handle extra args and kwargs in all POST endpoints
This fixes compatibility with DRF's versioning
2017-10-24 20:14:12 -04:00
Maxim Kukhtenkov
7e708d9ca7 Update configs and changelog for version 0.9.2 2017-10-02 15:52:33 -04:00
Grigoriy Beziuk
46fd16700a also for cookie deletion 2017-06-30 14:23:56 +03:00
Grigoriy Beziuk
6da0703b0d LoginView.get_response modified in order to respect rest_framework_jwt.JWT_AUTH_COOKIE setting 2017-06-30 13:59:10 +03:00
bIgBV
98306a35c1 Pass request in the context when initializing LoginSerializer 2017-06-24 18:50:50 +05:30
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
Mateusz Sikora
459d03e30d revised user details view 2014-10-02 11:18:23 +02:00
Mateusz Sikora
de1fb3d81f registration with email verification:
- rebuild login view
- check email verification in LoginSerializer depends on allauth settings
- add test for registration with email verification
2014-10-01 15:31:10 +02:00
Mateusz Sikora
f14b3b03f7 django-registration replacement
- remove django-registration references
- integrate with django-allauth
- move all registration stuff to separated app
- update unit tests
2014-10-01 14:13:21 +02:00
Mateusz Sikora
4c611afd7f add REST_SESSION_LOGIN setting, v0.2.5 2014-08-27 14:05:07 +02:00