add token authentication for testproject
This MR adds a token authentication for the testproject based on the token generation of djangos rest framework (note that there are multiple authentication schemes around). The token authentication here should rather serve as a proof of concept for the authentication in the dasf-messaging-framework that I implemented in dasf-messaging-python!39.
To test this setup @daniel.eggert, you need to
git fetch origin
git checkout token-authentication
pip install .[dev]
python manage.py migrate
python manage.py drf_create_token <your-superuser-account>
This will print out a token that you can use for authentication with the --header
attribute (see above-mentioned MR)
Edited by Philipp S. Sommer