zmartzone / lua-resty-openidc

OpenID Connect Relying Party and OAuth 2.0 Resource Server implementation in Lua for NGINX / OpenResty
Apache License 2.0
976 stars 249 forks source link

runtime error: ...lua/5.1/resty/session.lua:3: module 'resty.random' not found: #479

Open rajeevn1 opened 1 year ago

rajeevn1 commented 1 year ago

installed on debian as follows:

apt-get install -t testing libnginx-mod-http-lua lua{-{cjson,resty-core},rocks} luarocks install lua-resty-openidc

bodewig commented 1 year ago

I'm afraid by trying to set up nginx without using OpenResty you are in for a bit of extra work. AFAIK (and I'm really not an expert here) OpenResty bundles quite a few more Lua packages than just core and the Lua module. If you try to replicate that by yourself you may need to add more and more packages manually.