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

JWT For The Great Openresty

Results 37 lua-resty-jwt issues
Sort by recently updated
recently updated
newest added

support openssl 1.1 changes: add EVP_MD_CTX_new、EVP_MD_CTX_free

Hi, I've got the "Decode secret is not a valid cert\/public key" error. This is my code: ``` print("========") local jwt = require "jwt" local cjson = require("cjson") local jwt_token...

I'm trying to verify a token that uses this jwk: ``` { kid = "20171030-00:00:00", alg = "RS256", n = "AIueZ4JvoqY1imSaLGLLjCAEe3n/1CdHlnjtRjSLAsK69/ucL3slei3ParNHhuCmhE16LoHwnBXRbjy+GTPjmfLH4HMqbsMrEjGF5FYLW/6JjHJFyUzkWkYh+W/I99FBRC+J2oXSgD0t4iblV4BMYVJljjigMzzTrQT0h2OtXonX2B2vTjwO+nC9oNVI2fY09eDtsyaJOynaduej8Mgo6w8if/q23R0+fQuPxVkY/tr3o6eeUARcVye74mqyPBtNH+Ear894w4ipgSyvl2NAFrGF79CPWypnN8OFPqMMvATXEDeh1VBSnEUqum8bvvjI6S2w32OFxoDQ9zXW5wTMQsU=", x5c = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAi55ngm+ipjWKZJosYsuMIAR7ef/UJ0eWeO1GNIsCwrr3+5wveyV6Lc9qs0eG4KaETXougfCcFdFuPL4ZM+OZ8sfgcypuwysSMYXkVgtb/omMckXJTORaRiH5b8j30UFEL4nahdKAPS3iJuVXgExhUmWOOKAzPNOtBPSHY61eidfYHa9OPA76cL2g1UjZ9jT14O2zJok7Kdp256PwyCjrDyJ/+rbdHT59C4/FWRj+2vejp55QBFxXJ7viarI8G00f4Rqvz3jDiKmBLK+XY0AWsYXv0I9bKmc3w4U+owy8BNcQN6HVUFKcRSq6bxu++MjpLbDfY4XGgND3NdbnBMxCxQIDAQAB", kty = "RSA", e = "AQAB"...

We can fetch the `lua-resty-hmac` from `luarocks` or `opm` now. So I think we can delete the folder "vendor" now. We only need to set the correct dependency library for...

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...

Hello, is it possible to integrate this library into civetweb server and use it for simple token based authentication ?

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:") ` `...

I used the sample you gived and there are some information `local jwt = require "resty.jwt" local jwt_token = jwt:sign( "lua-resty-jwt", { header={typ="JWT", alg="HS256"}, payload={foo="bar"} } ) ngx.say(jwt_token)` 2019/08/14 03:24:05...