walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.02k stars 2.25k forks source link

JWT & Paseto support in Workerman? #695

Open raghuveer opened 2 years ago

raghuveer commented 2 years ago

Hi

Did you integrate any library to offer JSON Web TOkens (JWT), Paseto (https://paseto.io/) with workerman?

please share your thoughts

Thank you

walkor commented 2 years ago

I haven't integrated any such libraries with workman

raghuveer commented 2 years ago

I had used JWT custom implementation based on RFC and in sync with mysql db table that I am thinking to convert into OOP library, have to see how much that works, as I cared identification of tokens that we intend to drop specific authorizations/permissions etc...

Paseto is a simple one that is created by paragonie's Scott, who had advocated to include libsodium into php core from php v7.2, Paseto is being proposed to be alternative of JWT in to future.

I had asked to know if such efforts are made, no issue, those can be taken care of in generic frameworks like ours and the only reason I asked about is since we choose to make our frameworks async compatible the better way possible in the process, through utilization of revoltphp kind of event loop and workerman kind of libraries that take the baseline to the next level.