Martin Desrumaux
609f708a27
Fix schema generation for ObtainAuthToken view. ( #7211 )
2020-03-03 13:27:34 +01:00
gsvr
32caca4dd3
Import coreapi from rest_framework.compat, not directly. ( #5921 )
2018-04-05 15:07:49 +02:00
Ryan P Kilby
1bc826e6fd
Fix authtoken views imports ( #5818 )
2018-02-07 14:46:17 -05:00
Paulo Scardine
0d5a3a00b0
Add schema to ObtainAuthToken
...
Add encoding parameter to ManualSchema
Closes #5676
* Fixed lint errors
* Added docs for ManualSchema encoding parameter
2018-02-05 16:16:42 +01:00
Jascha Geerds
161dc2df2c
Call Django's authenticate function with the request object ( #5295 )
...
As of Django 1.11 the `authenticate` function accepts a request as an
additional argument. This commit fixes compatibility between newer Django
versions and custom authentication backends which already depend on the request
object.
See also:
[Django 1.11 release](https://docs.djangoproject.com/en/1.11/releases/1.11/ )
```
authenticate() now passes a request argument to the authenticate() method of
authentication backends. Support for methods that don’t accept request as the
first positional argument will be removed in Django 2.1.
```
2017-10-05 10:43:49 +01:00
Xavier Ordoquy
7a5d81c0b4
Add extra args/kwargs to authtoken's views ( #3718 )
2015-12-11 07:16:04 +01:00
José Padilla
7351a3f6ca
Sort imports with isort
2015-06-25 16:55:51 -04:00
José Padilla
83c9136c90
Cleanup import following PEP 8 style guide
2015-06-25 16:10:17 -04:00
mdoglio
d0126b7e31
Set serializer_class on ObtainAuthToken view
2015-03-22 12:35:56 +00:00
Tymur Maryokhin
d9a09f7826
Removed unused import
2014-11-28 13:33:07 +01:00
Tymur Maryokhin
0539b1be01
Update token auth view. Closes #2151 .
2014-11-28 12:27:05 +01:00
Tom Christie
2859eaf524
request.data attribute
2014-09-26 10:46:52 +01:00
Tom Christie
f2852811f9
Getting tests passing
2014-09-02 17:41:23 +01:00
Marc Tamlyn
49cd5e59a8
ObtainAuthToken pluggable Serializer.
...
It should have serializer_class in the same way as any other API view.
2013-01-08 12:20:01 +00:00
Tom Christie
c911d54ae3
Reverted #458
...
When incorrect parameters are supplied to the obtain auth token view
400 *is* the correct response.
2012-12-07 22:25:16 +00:00
Pavel Savchenko
7eec582d40
Better to return 401 when failing to authenticate
2012-11-28 17:04:36 +02:00
Rob Romano
321ba156ca
Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example.
2012-11-14 12:51:00 -08:00
Rob Romano
ce3ccb91dc
Updates to login view for TokenAuthentication from feedback from Tom
2012-11-14 12:46:14 -08:00
Rob Romano
bd92db3c67
Added authtoken login/logout urlpatterns and views
2012-11-14 12:46:14 -08:00
Tom Christie
4b691c4027
Change package name: djangorestframework -> rest_framework
2012-09-20 13:06:27 +01:00