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
| Name |
Last commit
|
Last update |
|---|---|---|
| .tx | Loading commit data... | |
| docs | Loading commit data... | |
| docs_theme | Loading commit data... | |
| requirements | Loading commit data... | |
| rest_framework | Loading commit data... | |
| tests | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .isort.cfg | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| ISSUE_TEMPLATE.md | Loading commit data... | |
| LICENSE.md | Loading commit data... | |
| MANIFEST.in | Loading commit data... | |
| PULL_REQUEST_TEMPLATE.md | Loading commit data... | |
| README.md | Loading commit data... | |
| mkdocs.yml | Loading commit data... | |
| requirements.txt | Loading commit data... | |
| runtests.py | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... | |
| tox.ini | Loading commit data... |