I am interested in having the user send a request in this fashion, using requests:
import requests
url = "https://postman-echo.com/basic-auth"
username = "postman"
password = "password"
response = requests.get(url, auth=(username, password))
Then in my Django model I need to be able to verify that those auth credentials are matching with the right user.
I cannot access request.auth and there are no auth fields in request.META.
What is the right way to access those credentials from the Django side?