django-rest-framework/rest_framework
Miro Hrončok ffdac0d936 TokenAuthentication: Allow custom keyword in the header (#4097)
This allows subclassing TokenAuthentication and setting custom keyword,
thus allowing the Authorization header to be for example:

    Bearer 956e252a-513c-48c5-92dd-bfddc364e812

It doesn't change the behavior of TokenAuthentication itself,
it simply allows to reuse the logic of TokenAuthentication without
the need of copy pasting the class and changing one hardcoded string.

Related: #4080
2016-05-04 10:53:34 +01:00
..
authtoken Fix sorting order. 2016-02-27 01:46:59 +01:00
locale Translation update. 2016-03-14 08:31:27 +01:00
static/rest_framework Added support for custom CSRF cookie names 2016-04-11 23:58:55 -04:00
templates/rest_framework Added support for custom CSRF cookie names 2016-04-11 23:58:55 -04:00
templatetags Fix template.render deprecation warnings for 1.9+ 2015-11-18 17:06:35 +01:00
utils Merge pull request #3273 from olliewalsh/breadcrumbs_view_name 2016-03-23 01:10:13 +01:00
__init__.py Bump version to 3.3.3 2016-02-12 13:23:08 +01:00
authentication.py TokenAuthentication: Allow custom keyword in the header (#4097) 2016-05-04 10:53:34 +01:00
compat.py Remove old django checks from tests and compat 2016-02-19 01:47:45 +05:30
decorators.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
exceptions.py Fixed _force_text_recursive typo 2016-02-07 18:58:19 +03:00
fields.py Fixed DecimalField arbitrary precision support (#4075) 2016-04-27 17:04:01 +01:00
filters.py OrderingFilter adjustements (#3983) 2016-04-08 15:37:23 +01:00
generics.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
metadata.py Replaced all dict and set conversions from lists to dict and set literals. 2015-10-17 12:00:11 +03:00
mixins.py Cleanup import following PEP 8 style guide 2015-06-25 16:10:17 -04:00
models.py Move models.resolve_model to serializers._resolve_model 2014-01-13 11:47:44 -05:00
negotiation.py More cleanup of browser overrides 2015-09-28 15:33:55 +01:00
pagination.py Merge remote-tracking branch 'reference/stable/3.3.x' into merge_test 2016-04-08 15:46:17 +02:00
parsers.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
permissions.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
relations.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
renderers.py Added support for custom CSRF cookie names 2016-04-11 23:58:55 -04:00
request.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
response.py Django 1.9's test case HttpResponse.json() is not cachable. 2015-08-28 11:55:23 +01:00
reverse.py More cleanup of browser overrides 2015-09-28 15:33:55 +01:00
routers.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
serializers.py Merge pull request #3936 from carltongibson/null-uuid-fk-take2 2016-03-22 22:46:33 +01:00
settings.py Fixes #3786 2016-01-06 22:51:11 +01:00
status.py The Internet Engineering Task Force approved the new HTTP status code 451. Adding to status.py and docs appropriately. 2015-12-23 12:54:17 -08:00
test.py Remove old django checks from tests and compat 2016-02-19 01:47:45 +05:30
throttling.py Fix blank lines around docstrings 2016-03-17 11:06:47 +00:00
urlpatterns.py Sort imports with isort 2015-06-25 16:55:51 -04:00
urls.py Add app_name to rest_framework.urls. 2015-12-08 02:25:00 +01:00
validators.py Replaced all dict and set conversions from lists to dict and set literals. 2015-10-17 12:00:11 +03:00
versioning.py QueryParameterVersioning does not use default version 2016-01-14 12:00:30 -06:00
views.py No auth view failing permission should raise 403 2016-04-07 16:24:26 +01:00
viewsets.py Fix 'metadata' action on viewsets. Closes #3158. Closes #3157. Closes #3115. 2015-07-16 10:08:22 +01:00