Skip to content

Runtime error when verifying expired JWT #127

@ChristianCiach

Description

@ChristianCiach

Please have a look at this stacktrace:

2017/12/07 13:29:41 [error] 20226#20226: *1246015 lua entry thread aborted: runtime error: /usr/local/openresty/site/lualib/resty/openidc.lua:86: bad "exptime" argument
stack traceback:
coroutine 0:
        [C]: in function 'set'
        /usr/local/openresty/site/lualib/resty/openidc.lua:86: in function 'openidc_cache_set'
        /usr/local/openresty/site/lualib/resty/openidc.lua:1163: in function 'jwt_verify'
        /usr/local/openresty/site/lualib/resty/openidc.lua:1193: in function 'bearer_jwt_verify'

This happens when putting a negative TTL into the cache, which probably happens when the JWT has expired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions