Skip to content

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

Description

@vikotham1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions