Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add authentication via tokens #455

Open
TimJentzsch opened this issue Nov 15, 2022 · 1 comment
Open

Add authentication via tokens #455

TimJentzsch opened this issue Nov 15, 2022 · 1 comment
Labels
API Suggestion which would change the user-facing API

Comments

@TimJentzsch
Copy link
Contributor

The current authentication method via email, username, password and API key is complicated to implement and not as easy to manage.

Instead, a simpler token authentication would be nice as an alternative.
This would also make it easier for third parties to use the API in the future.

Django REST provides a token-based authentication themselves, but it is quite limited (e.g. only one token per user).
They recommend the third-party package https://github.com/James1345/django-rest-knox which would probably be a good option for us.

@TimJentzsch TimJentzsch added the API Suggestion which would change the user-facing API label Nov 15, 2022
@TimJentzsch TimJentzsch self-assigned this Nov 15, 2022
@TimJentzsch
Copy link
Contributor Author

For now we should just add this as alternative, not replacing the old authentication flow.
I think you also need to log in normally to obtain the token.

@TimJentzsch TimJentzsch removed their assignment Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Suggestion which would change the user-facing API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant