I have a question regarding authentication. Let's say i have a Django app where i only want users from an another user-database API to login. Is it possible to use Django's session authentication, but without having to create them as a user in Django's user backend?
I'm using Django's rest framwork.
Auth flow:
- Post a request to another user-database API with username and password. Status code 200 if user exists.
- Use Django's (if posssible) session authentication to manage this new session, so the user doesn't have to login on every refresh, but not be logged in permanently either.
- Be able to logout, too
I know about the different kinds of auth for django-rest-framwork but they all seem to wanna have a user created in their backend.
Using
- django 1.11.3
- djangorestframework 3.7.7