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

The token has been blacklisted Problem #1

Open
bilashcse opened this issue Aug 16, 2016 · 3 comments
Open

The token has been blacklisted Problem #1

bilashcse opened this issue Aug 16, 2016 · 3 comments

Comments

@bilashcse
Copy link

In this doc, I have seen, On every request we will get token on response header & this token will be used for next API request. But when I am using the response header token on next API request, I will get error "The token has been blacklisted".

"error":{  
         "message":"The token has been blacklisted",
         "status_code":401
      }

Actually I want to know why this problem occurred & how to solve this problem.

Thanks in advance

@potasiyam
Copy link
Owner

Could you please elaborate a bit more with steps for reproducing the issue?

@bilashcse
Copy link
Author

bilashcse commented Aug 16, 2016

I got a Token using mobile no & password & that Token is used to post a product on kidorkar.com. In response of the post request I will get a token in response header & that token will be used for next api request. But I got error if I use response headers token.

The error :
[ { "statusCode":401, "body":{ "error":{ "message":"The token has been blacklisted", "status_code":401 } }, "headers":{ "date":"Tue, 16 Aug 2016 05:39:35 GMT", "server":"Apache/2.2.15 (CentOS)", "x-powered-by":"PHP/5.6.22", "www-authenticate":"JWTAuth", "cache-control":"no-cache", "set-cookie":[ "XSRF-TOKEN=eyJpdiI6IklKSzhLcWRBXC9lT3UzOG1lWUdueVdRPT0iLCJ2YWx1ZSI6InhMMFRSUDUrT3JsSGFzRUtIYzlDaU5OR1lVeVNUMEUrVFhyQ2ZHTEZKdW50QWpDaCtmY2RDbjlGSGxtOW44aUpDOW03RElvWkVsY0RtK1dpbzB0eVp3PT0iLCJtYWMiOiI2NDE2ODNhODg3ODM5ZDNkYjc3M2M5YmNjNGQ2YjZhZDE5NzMyOGMxNGQyYWJkZjQwMmM0ZWYwOGRlNjg4NTNmIn0%3D; expires=Tue, 16-Aug-2016 07:39:35 GMT; Max-Age=7200; path=/", "laravel_session=eyJpdiI6IkFyUlJXWnRoZnl6YWZcL1BHV2ViV0RBPT0iLCJ2YWx1ZSI6ImxudERzV0tjS2hLV1V1Y29MOGJkd1BlT2g0b1dnTG03bEU1RmU5OEpaVDNNK09WK1wvaGt4XC9ob1QxUVVQK3VKQmREcG45clwvTFwvT0NZaHVcL3R3YmVjbmc9PSIsIm1hYyI6ImMxYzBmM2NkOGMxZDcxMDgyODFmNDk0ODU3NGYyNWYzNTVjNDA4ODJkY2NmODE3MTMxYTUxNzQwOGNiNGZlZTUifQ%3D%3D; expires=Tue, 16-Aug-2016 07:39:35 GMT; Max-Age=7200; path=/; httponly" ], "vary":"Accept-Encoding", "content-length":"72", "connection":"close", "content-type":"application/json" }, "request":{ "uri":{ "protocol":"http:", "slashes":true, "auth":null, "host":"api.shobkichhu.com", "port":80, "hostname":"api.shobkichhu.com", "hash":null, "search":"?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODgiLCJpc3MiOiJodHRwOlwvXC9hcGkuc2hvYmtpY2hodS5jb21cL2FwaVwvc2l0ZXNcLzE1OFwvcHJvZHVjdHMiLCJpYXQiOjE0NzEzMjU3MjQsImV4cCI6MTQ3MTMyOTMyNCwibmJmIjoxNDcxMzI1NzI0LCJqdGkiOiJiYmQ1MWEzMzhlMmMzZGE3ZjkzZmM5YWNlODk4MjkwNCJ9.kjz6T3abylEbQX5hD9116sKLUffumF-rhCrX_e0wIoU", "query":"token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODgiLCJpc3MiOiJodHRwOlwvXC9hcGkuc2hvYmtpY2hodS5jb21cL2FwaVwvc2l0ZXNcLzE1OFwvcHJvZHVjdHMiLCJpYXQiOjE0NzEzMjU3MjQsImV4cCI6MTQ3MTMyOTMyNCwibmJmIjoxNDcxMzI1NzI0LCJqdGkiOiJiYmQ1MWEzMzhlMmMzZGE3ZjkzZmM5YWNlODk4MjkwNCJ9.kjz6T3abylEbQX5hD9116sKLUffumF-rhCrX_e0wIoU", "pathname":"/api/sites/158/products", "path":"/api/sites/158/products?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODgiLCJpc3MiOiJodHRwOlwvXC9hcGkuc2hvYmtpY2hodS5jb21cL2FwaVwvc2l0ZXNcLzE1OFwvcHJvZHVjdHMiLCJpYXQiOjE0NzEzMjU3MjQsImV4cCI6MTQ3MTMyOTMyNCwibmJmIjoxNDcxMzI1NzI0LCJqdGkiOiJiYmQ1MWEzMzhlMmMzZGE3ZjkzZmM5YWNlODk4MjkwNCJ9.kjz6T3abylEbQX5hD9116sKLUffumF-rhCrX_e0wIoU", "href":"http://api.shobkichhu.com/api/sites/158/products?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODgiLCJpc3MiOiJodHRwOlwvXC9hcGkuc2hvYmtpY2hodS5jb21cL2FwaVwvc2l0ZXNcLzE1OFwvcHJvZHVjdHMiLCJpYXQiOjE0NzEzMjU3MjQsImV4cCI6MTQ3MTMyOTMyNCwibmJmIjoxNDcxMzI1NzI0LCJqdGkiOiJiYmQ1MWEzMzhlMmMzZGE3ZjkzZmM5YWNlODk4MjkwNCJ9.kjz6T3abylEbQX5hD9116sKLUffumF-rhCrX_e0wIoU" }, "method":"POST", "headers":{ "content-type":"application/json", "accept":"application/json", "content-length":274 } } }, { "error":{ "message":"The token has been blacklisted", "status_code":401 } } ]

@bilashcse
Copy link
Author

Hope you will give a solution asap.

Thanks @potasiyam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants