Skip to content

add token authentication for testproject

Philipp S. Sommer requested to merge token-authentication into main

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

  1. git fetch origin
  2. git checkout token-authentication
  3. pip install .[dev]
  4. python manage.py migrate
  5. 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

Merge request reports