Daniel Stanton
|
5961c48a07
|
Added some knox tests
|
2017-01-26 18:44:09 +00:00 |
|
Daniel Stanton
|
bab9a18bcb
|
Wrong serializer and key
|
2017-01-26 18:28:16 +00:00 |
|
Daniel Stanton
|
84aa8965d7
|
Added logout all URL for tests
|
2017-01-26 18:27:41 +00:00 |
|
Daniel Stanton
|
fb8adc0aac
|
Simplified logic for selections based on REST_USE_KNOX
|
2017-01-26 18:27:13 +00:00 |
|
Daniel Stanton
|
5e790098ed
|
Bash shouldn't be there
|
2017-01-26 12:15:49 +00:00 |
|
Daniel Stanton
|
869de7d4bb
|
Add missing dependencies for test setup
|
2017-01-26 12:15:01 +00:00 |
|
Daniel Stanton
|
638f53c65e
|
Ignore Virtual Environment files
|
2017-01-26 12:14:31 +00:00 |
|
Daniel Stanton
|
2059de79db
|
Installed Knox for tests
|
2017-01-25 18:03:23 +00:00 |
|
Daniel Stanton
|
acb6a0d342
|
Missed a KnoxTokenSerializer to KnoxSerializer,
|
2017-01-25 18:02:55 +00:00 |
|
Daniel Stanton
|
b3d85f23b2
|
Added configuration and installation documentation
|
2017-01-25 18:01:39 +00:00 |
|
Daniel Stanton
|
c341b1b0ff
|
Renamed KnoxTokenSerializer to KnoxSerializer
As it now returns both token and user
|
2017-01-25 18:00:02 +00:00 |
|
Daniel Stanton
|
1ce7b850d7
|
Updated API endpoints documentation
|
2017-01-25 17:29:16 +00:00 |
|
Daniel Stanton
|
c1df248dbb
|
Use custom User serializer with Knox as well as JWT
|
2017-01-25 16:19:02 +00:00 |
|
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
|
89dd206128
|
Extend to Append
|
2017-01-25 15:43:26 +00:00 |
|
Daniel Stanton
|
cb3c859919
|
KnoxTokenAuthentication won't exist unless REST_USE_KNOX
|
2017-01-25 13:20:51 +00:00 |
|
Daniel Stanton
|
cc37193efd
|
Import settings
|
2017-01-25 13:14:28 +00:00 |
|
Daniel Stanton
|
cddfc3d2ff
|
It was missing a comma
|
2017-01-25 13:13:13 +00:00 |
|
Daniel Stanton
|
f7cbbb0843
|
Added logoutall to main urls list
|
2017-01-25 13:11:05 +00:00 |
|
Daniel Stanton
|
b56e542e01
|
Made Logout All clearer
|
2017-01-25 13:10:51 +00:00 |
|
Daniel Stanton
|
aa0b3caa8b
|
Extend urlpatterns
|
2017-01-25 13:04:21 +00:00 |
|
Daniel Stanton
|
a262e59b02
|
LogoutAllView deletes all Knox tokens
|
2017-01-25 13:00:42 +00:00 |
|
Daniel Stanton
|
053be68cdc
|
Removed blank line
|
2017-01-25 12:39:54 +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
|
9588627414
|
Missed a revert to REST_USE_KNOX
|
2017-01-25 10:50:15 +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
|
6f2319e20e
|
Pass Knox serializer appropriate data format and separate from default
|
2017-01-24 14:54:14 +00:00 |
|
Daniel Stanton
|
a2aa430d4a
|
KnoxTokenSerializer should be serializers.Serializer
|
2017-01-24 14:49:46 +00:00 |
|
Daniel Stanton
|
c27286170c
|
KnoxTokenSerializer should just return the generated token
|
2017-01-24 14:48:24 +00:00 |
|
Daniel Stanton
|
544c45f84a
|
Knox model stores token_key, not token
|
2017-01-24 14:42:53 +00:00 |
|
Daniel Stanton
|
3ac64f99dd
|
Knox tokens should be created, not retrieved
|
2017-01-24 14:37:46 +00:00 |
|
Daniel Stanton
|
83f4db64a4
|
Added create_knox_token
as default_create_token fails
|
2017-01-24 14:34:06 +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
|
b926291fdc
|
Replaced tabs with spaces
|
2017-01-24 13:56:23 +00:00 |
|
Daniel Stanton
|
d76b685c36
|
try/except Knox AuthToken model import
|
2017-01-24 13:53:06 +00:00 |
|
Daniel Stanton
|
0c9c9b5a5a
|
Use TokenModel in Knox serializer
|
2017-01-24 13:52:19 +00:00 |
|
Daniel Stanton
|
41b5cca6db
|
Removed bad commas
|
2017-01-24 13:01:17 +00:00 |
|
Daniel Stanton
|
b9aadef031
|
Remove KnoxTokenSerializer import
|
2017-01-24 12:52:50 +00:00 |
|
Daniel Stanton
|
a8c6248134
|
DefaultTokenSerializer depends on REST_USE_KNOX
|
2017-01-24 12:51:29 +00:00 |
|
Daniel Stanton
|
ca0cbd88e6
|
Use Knox AuthToken as default Token Model if REST_USE_KNOX is True
|
2017-01-24 12:47:46 +00:00 |
|
Daniel Stanton
|
ea9bdec6ca
|
Use self.token instead of user.auth_token
Removes implicit 1-to-1 user-to-token requirement
|
2017-01-24 12:44:03 +00:00 |
|
Daniel Stanton
|
64b241c93f
|
Added KnoxTokenSerializer to app_settings
|
2017-01-24 12:36:19 +00:00 |
|
Daniel Stanton
|
e4487dc029
|
Added serializer for Knox AuthToken
|
2017-01-24 12:31:29 +00:00 |
|
Maxim Kukhtenkov
|
beb073f35f
|
Update travis.yml and add latest Django 1.10 to tests
|
2016-12-31 12:59:49 -08:00 |
|
Maxim Kukhtenkov
|
971072ae37
|
Add sensitive_post_parameters decorator to several views
|
2016-12-31 12:55:19 -08:00 |
|
Maxim Kukhtenkov
|
ce58da58b2
|
Update configs and changelog for version 0.9.0
|
2016-12-22 13:29:51 -08:00 |
|
Maxim Kukhtenkov
|
951f3ce284
|
Compile translations and small text fixes
|
2016-12-22 11:57:23 -08:00 |
|