lua-resty-jwt icon indicating copy to clipboard operation
lua-resty-jwt copied to clipboard

With the JWT token, server/openresty returns INVALID_JWT

Open vikotham1 opened this issue 5 years ago • 0 comments

Hi, Thanks much for the module and example code. I have installed openresty and the dependent lua libs using opm. Also used this example guard.lua and started nginx. when I issued the command I am getting the invalid JWT error. Can you please help me what is going wrong here or what am I doing wrong? How can I debug this issue. Thanks a lot for your help in advance.

Below is the command I have issued.

curl -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE1OTE0NjY1ODYsImV4cCI6MTYyMzAwMjU4NiwiYXVkIjoid3d3LmV4YW1wbGUuY29tIiwic3ViIjoianJvY2tldEBleGFtcGxlLmNvbSIsIkdpdmVuTmFtZSI6IkpvaG5ueSIsIlN1cm5hbWUiOiJSb2NrZXQiLCJFbWFpbCI6Impyb2NrZXRAZXhhbXBsZS5jb20iLCJSb2xlIjpbIk1hbmFnZXIiLCJQcm9qZWN0IEFkbWluaXN0cmF0b3IiXX0.X-ETDJQL1vLWJp9AoweJve8XmNwrRpCz6F-Q2MRlEPw" http://localhost:80/api/test2 {"error": "INVALID_JWT"}

vikotham1 avatar Jun 09 '20 14:06 vikotham1