Poderyagin Egor
cc9552adda
update for accept login users of CustomUserModel objects where doesn't exist username field and setted USERNAME_FIELD property
2016-02-17 08:35:47 +03:00
Jon Gregorowicz
511329c30a
Fixing merge tool induced file endings
2016-02-16 00:49:41 -05:00
Jon Gregorowicz
8b5e5173d0
Added newline to pip file
2016-02-16 00:43:19 -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
Haos616
dae38d4e10
Fixed errors messages for PasswordResetSerializer
...
Fixed errors messages for PasswordResetSerializer
2016-02-10 18:45:32 +02:00
mariodev
7c8a34f700
Merge pull request #132 from asudoma/master
...
fix import complete_social_login
2016-02-08 08:12:52 +01:00
Nicola Hauke
152b0a6fb6
Adds ugettext_lazy to more texts
...
Also adds a first german translation.
2016-02-02 15:29:16 +01:00
mariodev
00415301d6
Merge pull request #145 from mdentremont/topic/131
...
#131 : Do not raise 400 when resetting password for non-existing account
2016-01-14 23:53:31 +01:00
mario
7e85667208
Made e-mail options more extendible for PasswordResetSerializer
2016-01-14 23:42:02 +01:00
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
mario
ae8a26b708
Return token only when verification is mandatory
2016-01-11 22:33:14 +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
mariodev
334a29c4d9
Merge pull request #151 from Tivix/pr/130
...
Refactored registration logic
2016-01-06 18:26:47 +01:00
mariodev
d63232224e
Merge pull request #150 from Tivix/pr/141
...
Ability to login using e-mail (without allauth)
2016-01-06 18:16:51 +01:00
mario
54eb54ad65
Cleaned up LoginSerializer codebase
2016-01-06 01:18:13 +01:00
mario
b12ed79bb1
Merge branch 'master' into pr/141
2016-01-05 22:32:38 +01:00
Tabatha Memmott
55fb36ec91
url change for tests
2016-01-05 11:46:01 -08:00
Tabatha Memmott
29669be296
Merge branch 'master' into developDemo
2016-01-05 08:08:17 -08:00
mario
073dd3e765
Fixed flake8 warnings
2016-01-05 15:09:31 +01:00
mario
99c4dc9d05
Brought back pass verification + added test
2016-01-05 14:56:11 +01:00
Tabatha Memmott
0e3fb4a5c9
closes PR #134 and adds same syntax to demo
2016-01-04 16:29:47 -08: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
Matt d'Entremont
d36a9bc1cb
#131 : Do not raise 400 when resetting password for non-existing account
...
- Do not raises validation error if email doesn't exist
- Update unit test
2016-01-04 10:17:47 -04:00
Mateus Caruccio
c9d55f768c
Add support for custom Token model
2016-01-02 15:59:06 -02:00
mario
ec91620550
Merge branch 'master' into pr/130
2016-01-02 17:32:40 +01:00
mariodev
4a56a9e7e5
Merge pull request #140 from Akay7/TestResetPass
...
Test reset pass
2015-12-22 11:57:01 +01:00
mario
4c8db510b0
Fixed test exception.
2015-12-22 09:28:35 +01:00
ron8mcr
f848c8b6fa
Merge remote-tracking branch 'Tivix/django-rest-auth/master'
2015-12-15 17:06:47 +07:00
Poderyagin Egor
bb2fb65f7d
Auth by email
2015-12-13 23:43:33 +03:00
Poderyagin Egor
a93b7f5cec
Added test case for reset by email in different case
2015-12-13 22:24:27 +03:00
Poderyagin Egor
9b7ede752b
Make email in password reset serializer Case unsensetive
2015-12-10 18:13:28 +06:00
mario
72062408aa
Reorganized test files
2015-12-04 09:32:03 +01:00
anyone_j
cc963ca1a1
fix import complete_social_login
2015-11-26 14:38:25 +05:00
ron8mcr
52f04ba224
Update tests and fix register serializer
2015-11-24 22:04:57 +07:00
ron8mcr
65b29d3515
None as success_url for complete_signup in RegisterView
2015-11-24 21:16:39 +07:00
ron8mcr
30fd6414ce
Explict Allow Any for register view
2015-11-24 21:07:20 +07:00
Roman Gorbil
10ae7acac9
Rewrite registration logic
2015-11-24 17:11:46 +07:00
mario
f3151ad5c0
Fixed try/catch in logout view
2015-11-23 22:52:59 +01:00
mario
d9b8f3faf6
Added non existing e-mail validation on password reset
...
+ small cleanup
2015-11-23 22:17:32 +01:00
ron8mcr
fac959ea80
raise_exception=True for views
2015-11-23 21:04:56 +07:00
mario
6ace9de268
Compatibility updates
...
+ removed some legacy code
+ added force_text for py3 support
2015-11-19 09:38:57 +01:00
Mateusz Sikora
315f6f2844
Merge pull request #118 from mdentremont/topic/py3-fix
...
Alter a statement to make it python3 compatible
2015-11-06 15:16:07 +01:00
Mateusz Sikora
3eaa491fb1
fix flake8
2015-11-06 14:09:47 +01:00
Mateusz Sikora
57a879f6c0
Merge branch 'master' of github.com:Tivix/django-rest-auth
2015-11-06 14:09:23 +01:00
Mateusz Sikora
60581fc375
fix issue with setting POST attribute in request
2015-11-06 14:07:12 +01:00
Karl Fleischmann
f1858e4ce4
Bypass AssertionErrors on nested Hyperlinked fields
...
Send request as context data to the UserDetailSerializer class, when
signing up. This way nested Hyperlinked serializer fields can be
correctly resolved.
2015-10-28 00:55:08 +01:00
Matt d'Entremont
7fbdcff5e0
Alter a statement to make it python3 compatible
...
- In python 3, filter returns an iterator instead of a list
- Thus bool(filter(...)) always evaluated to true on python3
- Convert the filter to a list comprehension to ensure it evaluated as
expected on python 3
2015-10-26 10:13:27 -03:00
Mateusz Sikora
ba5edbaf62
fix update_session_auth_hash for django <1.7
2015-10-19 10:12:25 +02:00
Bhaarat Sharma
48eb40ae47
adding not
2015-10-18 08:23:36 -04:00
Bhaarat Sharma
296a49a04b
Don't log the user out after change password - Django 1.7
2015-10-18 00:20:50 -04:00
mario
680f24e43d
Fix the optional deps for allauth.socialaccount
2015-10-04 12:41:07 +02:00
Nick Spacek
0ae97701c8
Adds check for optional deps in INSTALLED_APPS
...
Previously the serializers.py file relied solely on the presence of
allauth.socialaccount in the PYTHON_PATH to determine if its use was
required. This adds another check in the Django INSTALLED_APPS for the
allauth.socialaccount app, and then continues with the import if the app
has been added.
2015-10-01 09:51:25 -03:00
Philippe Luickx
c22b77724d
LoginSerializer allow_blank fix
2015-08-17 13:35:20 +03:00
Philippe Luickx
4cf33ff9fa
SocialLoginSerializer allow_blank fix
2015-08-17 13:34:59 +03:00
Mateusz Sikora
388314f831
fix flake8
2015-08-14 13:49:47 +02:00
Philippe Luickx
64ab8be2f0
catching incorrect input
2015-08-13 10:56:25 +03:00
Philippe Luickx
5a6c8f549b
bugfix
2015-08-10 11:24:21 +03: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
Philippe Luickx
4a3ea85f44
well, that was an easy cleanup, now it is nice and consistent
2015-08-07 13:46:18 +03:00
Philippe Luickx
bd193a1401
you can now login with email and password, without username
2015-08-07 13:43:21 +03:00
Philippe Luickx
74f2ffec7f
now also accepting authorization codes from social login (e.g. facebook)
2015-08-07 13:26:57 +03:00
Philippe Luickx
8ea935ef40
conditional import
2015-08-07 11:25:40 +03:00
Nikolay Golub
a9d2a24011
Make names more consistent
2015-07-23 22:33:48 +03:00
Nikolay Golub
f43a6b8d58
move SocialAccount population to the separate method in the SocialLoginSerializer.
...
It makes easier to get the correct signup for custom user models, because application can subclass SocialLoginSeriaLizer and add required fields to the instance.
2015-07-23 22:22:39 +03:00
mjaworski
a60df71c07
Flake8 style fixes
2015-04-28 10:22:08 +02:00
mjaworski
ece4c01ada
Merge branch 'master' into flake8
2015-04-28 10:04:42 +02:00
mjaworski
9803d9f941
adding static code analysis
2015-04-28 10:04:20 +02:00
Marco Badan
4b9b631744
Fix TabError: inconsistent use of tabs and spaces in indentation
2015-04-27 17:06:48 +02:00
Antoine
7aa2fdb18c
Fixed version check
2015-04-27 20:05:25 +08:00
Antoine
ee55380a6c
Switched to standard import_module as the Django embedded one is deprecated and will be removed in next version
2015-04-17 16:49:32 +01:00
mjaworski
80a7988a9b
Django 1.8 compatibility fixes
2015-04-17 09:53:46 +02:00
mjaworski
e6d56c9e02
Merge branch 'master' of https://github.com/Tivix/django-rest-auth
2015-04-13 15:19:57 +02:00
mjaworski
bef1074052
Replaced references to contrib.auth.model.User with get_user_model(). Closes #68
2015-04-13 15:19:54 +02:00
S.Turgut
fe1eff745e
change PasswordResetConfirmSerializer setpasswordform from token invalid value error to form validation error
2015-03-11 12:05:45 +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
e8ac019b4c
Merge pull request #55 from vesterbaek/fix_drf_request
...
DRF 3 bug: get HttpRequest from DRF request object. Similar to issue #43
2015-02-25 17:38:43 +01:00
Jeppe Vesterbæk
c615cd94aa
DRF 3 bug: get HttpRequest from DRF request object. Similar to issue #43
2015-02-25 16:52:51 +01:00
Jeppe Vesterbæk
846040259a
Mark email as read only for user details
2015-02-25 16:06:46 +01:00
Mateusz Sikora
2158fffd2a
fix #47 - PasswordResetConfirm doesn't check token
2015-01-27 16:52:54 +01:00
Lele Long
199a4989c5
Adjust for djangorestframework 3
2015-01-15 23:45:01 +08:00
Mateusz Sikora
01ffd4127b
support django-rest-framework v3.0
2015-01-09 12:05:14 +01:00
Mateusz Sikora
e9fee3aa92
Support custom UserDetailsSerializer for registration
2015-01-09 11:20:46 +01:00
Mateusz Sikora
5d53a0e0a0
fix unit tests for social auth - required after changes in allauth v0.19.0
2015-01-09 11:12:00 +01:00
Marc
b2d5c221c7
Support for custom UserDetailsSerializer on Register view
2014-12-18 16:52:28 +01:00
Mateusz Sikora
7b7e2d368b
fix bug in PasswordChangeSerializer
2014-11-14 10:31:02 +01:00
Mateusz Sikora
e8a7b0bdf4
add old_password field in PasswordChangeSerializer, disabled by default
2014-11-12 11:51:22 +01:00
Mateusz Sikora
0fc4d56dae
add FAQ section in docs
2014-11-12 11:18:21 +01:00
Mateusz Sikora
059b0dcbab
make all endpoints browsable
2014-11-12 10:33:29 +01:00
Mateusz Sikora
bbc9eeee3a
make registration API browsable
2014-11-12 03:52:06 +01:00
Marc Tudurí marctc@gmail.com
be6b65dc55
modified utils.py in order to work properly with python2 and python3
2014-11-06 09:15:54 +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
aac42af991
fix tests
2014-10-15 17:36:21 +02:00
Mateusz Sikora
5fd7ea5596
update demo project - still not finished
2014-10-15 17:32:19 +02:00
Mateusz Sikora
102fcedc82
move some test files outside app
2014-10-14 14:56:00 +02:00
Mateusz Sikora
989f3fa7af
minor fixes
2014-10-09 11:41:52 +02:00
Mateusz Sikora
6ecb6a7847
fix setting name
2014-10-09 10:49:20 +02:00
Mateusz Sikora
2b5942c4ac
custom serializers settings
2014-10-08 13:19:34 +02:00
Mateusz Sikora
489bac6e1f
comment out unused part of code in tests
2014-10-08 12:26:32 +02:00
Mateusz Sikora
4088081707
add social medial authentication tests, separate test urls
2014-10-08 12:19:15 +02:00
Mateusz Sikora
f134d8b1d6
remove unused utils.py
2014-10-08 10:29:22 +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
f0cd45f7be
fix tests for django 1.7
2014-10-02 12:39:47 +02:00
Mateusz Sikora
ff9fd1c3c1
cleanup tests
2014-10-02 11:40:07 +02:00
Mateusz Sikora
34d3627c7c
remove unused serializers.py form registration app
2014-10-02 11:31:33 +02:00
Mateusz Sikora
61cafa3cb6
fix tests for djnago 1.5
2014-10-02 11:23:52 +02:00
Mateusz Sikora
459d03e30d
revised user details view
2014-10-02 11:18:23 +02:00
Mateusz Sikora
65b5caa3d0
typo
2014-10-01 16:36:34 +02:00
Mateusz Sikora
08fcca9b48
veirfy email view and test
2014-10-01 16:34:51 +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
Mateusz Sikora
c863cfb0e6
move PasswordResetForm as an attribute of PasswordReset view class
2014-08-19 13:24:03 +02:00
Mateusz Sikora
ee1aedbe23
add serializer_class attribute to UserDetails view
2014-07-09 16:43:03 +02:00
Mateusz Sikora
445c211ebe
make UserProfile fully optional; version 0.2.3
2014-07-08 11:36:59 +02:00
Mateusz Sikora
0a1d239374
v0.2.2: support projects without user profiles and set defaul registration backend
2014-07-03 19:56:02 +02:00
Mateusz Sikora
44e0f33b25
make IS_TEST not required, enhancement in Login view
2014-05-30 11:17:25 +02:00
Mateusz Sikora
1d9379c43b
remove unnecessary settings from tests
2014-05-06 13:08:15 +02:00
Mateusz Sikora
6993e98282
test for password reset process
2014-05-06 00:53:06 +02:00
Mateusz Sikora
d33bbc8021
enhancements in PasswordResetConfirm and Register views
2014-05-05 21:01:23 +02:00
Mateusz Sikora
1cf6052a31
move definition of registration view and user profile model to runtest script
2014-05-05 17:57:47 +02:00
Mateusz Sikora
11cca48391
make compatible with django 1.5
2014-05-03 00:42:29 +02:00
Mateusz Sikora
7e24165c82
disable swagger docs for tests
2014-05-03 00:01:16 +02:00
Mateusz Sikora
d2f9261703
update test_settings
2014-05-02 23:55:39 +02:00
Mateusz Sikora
e32e125a65
missed file
2014-05-02 23:50:54 +02:00
Mateusz Sikora
02b1f3aa20
make 'python setup.py test' working
2014-05-02 23:47:28 +02:00
Mateusz Sikora
2faaa3d5c5
update test_settings
2014-05-02 21:58:41 +02:00
Mateusz Sikora
53860acdeb
update test_settings
2014-05-02 21:03:25 +02:00
Mateusz Sikora
1c8d2f6d56
create test_settings
2014-05-02 20:53:42 +02:00
Mateusz Sikora
5ba22d4193
travis-ci tests trigger
2014-05-02 20:29:30 +02:00
Mateusz Sikora
2bde528074
test cleanup
2014-05-01 22:32:30 +02:00
Silin Na
93a3de57ff
Created AUTHORS, MANIFEST.in, and setup.py.
...
+ Revised README.md.
+ AutoPEP8 rest_auth python files.
2014-04-30 13:55:04 -07:00
Sumit Chachra
e1c577d4fd
First commit.
2014-04-30 12:52:05 -07:00