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

With the JWT token, server/openresty returns INVALID_JWT #94

Open
vikotham1 opened this issue Jun 9, 2020 · 0 comments
Open

With the JWT token, server/openresty returns INVALID_JWT #94

vikotham1 opened this issue Jun 9, 2020 · 0 comments

Comments

@vikotham1
Copy link

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"}

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

1 participant