Closed krishnanpandya007 closed 2 years ago
Are you sure you have the correct token?
I am using postman and I can post successfully.
Are you sure you have the correct token?
I am using postman and I can post successfully.
I take access token from Django admin panel {Access Tokens} section and it's not expired yet
Am I doing or taking wrong token?
Let's go step by step. First you need to fire a request to the /convert-token endpoint. That will respond with a response that includes your access token. You're going to copy that token and include it to the Bearer
Let's go step by step. First you need to fire a request to the /convert-token endpoint. That will respond with a response that includes your access token. You're going to copy that token and include it to the Bearer . Are you doing that?
I am getting the access_token from localhost:8000/auth/token/ as i am getting this token from credentials details. I hope this also works. but still it's unAuthorized can u imagine any core cases (anything that affect)??
Do not get the token from auth/token, but from auth/convert-token.
Looks like configurations gone wrong at settings.py
Working now!!!
Hi! I faced the same problem. Send request with the token I've got from auth/convert-token, but get the same error. What could be wrong?
As working on some protected backend views i have some views covered by
permissions.IsAuthenticated
which is only allow known users to hit this endpointAs going to your quick manual
i replaced
<backend_name>
with my custom backend name and<backend_token>
by an access_token which is been generated by it-self but however when i try to hit protected endpoint i got error saying