[Fixed]-Django rest frame work : oscarapi authentication is not working

1👍

I had the same issue, while inspecting the call log, I found that my call was 301 redirecting as follows –

"GET /api/v1/basket HTTP/1.1" 301 0
"GET /api/v1/basket/ HTTP/1.1" 200 401

and was returning an “Authentication credentials were not provided.” error.
Appending a “/” in url solved the issue.

The reason I suppose, 301 redirection not sending Authorization header in request.
Hope this may help

Leave a comment