bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
320 stars 111 forks source link

session id generator using JWT as id #21

Closed mingfang closed 7 years ago

mingfang commented 9 years ago

Is there an example of how to write a session id generator? I want to create a JWT as the session id.

bungle commented 9 years ago

Interesting, it is on the todo list. Maybe if I create the first one you can contribute JWT?

mingfang commented 9 years ago

Great. I must declare that I'm by no means a Lua expert. But I will try.

On Oct 28, 2015, at 4:49 PM, Aapo Talvensaari notifications@github.com wrote:

Interesting, it is on the todo list. Maybe if I create the first one you can contribute JWT?

— Reply to this email directly or view it on GitHub https://github.com/bungle/lua-resty-session/issues/21#issuecomment-151986023.

bungle commented 9 years ago

I let you know when the ground work is done.

bungle commented 7 years ago

@mingfang, I'm not sure if this is interesting to you anymore, but I just released version 2.12 that has pluggable session identifier generators possible. If you wish to contribute, please do so. The default one is here: https://github.com/bungle/lua-resty-session/blob/master/lib/resty/session/identifiers/random.lua