astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

added a generate-token endpoint #34

Closed allynt closed 4 years ago

allynt commented 4 years ago

Now that the API uses TokenAuthentication, a token must be passed w/ most requests.

However, the backend still use SessionAuthentication for the standard Django workflow.

I have therefore added an API endpoint for those clients where login/registration is done via the backend (ie: Django forms/templates) which generates a token to use for pure API calls.