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

jwt sgin err when typ is JWE #90

Open
Steven201314 opened this issue Oct 30, 2019 · 2 comments
Open

jwt sgin err when typ is JWE #90

Steven201314 opened this issue Oct 30, 2019 · 2 comments

Comments

@Steven201314
Copy link

When test this code , in openresty it aborted a error follow
local jwt_token = jwt:sign( "lua-resty-jwt1", { header={typ="JWE", alg="dir" , enc = 'A128CBC-HS256'}, payload={foo="bar"} } ) ngx.print("jwt_token:")
`
2019/10/30 23:59:07 [error] 2369#0: *246 lua entry thread aborted: runtime error: unknown reason
stack traceback:
coroutine 0:
[C]: in function 'error'
/usr/share/lua/5.1/resty/jwt.lua:202: in function 'derive_keys'
/usr/share/lua/5.1/resty/jwt.lua:407: in function 'sign'

`

@cdbattags
Copy link

check out the fork at https://github.com/cdbattags/lua-resty-jwt

this repo has been more or less "deprecated" by the community

@cdbattags
Copy link

LuaRocks has the above fork as the main in the registry https://luarocks.org/modules/cdbattags/lua-resty-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

2 participants