You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to verify a JWT token from Google inside PostgreSQL. After some research, I determined that the quickest way I might be able to do it was using the plv8 language and running a standalone JS verifier.
I used your jsrsassign and managed to get it running although I had to hack out the YUI and other parts that were doing window.crypto related calls.
I don't expect this to be easily reusable by anyone else, but I thought I'd share it in case you are interested in providing a compact version of the JS as a module that could serve that need.
//load the external jsrsasign lib (must be fetched and stored in global before)
var navigator = {}; //fake a navigator object for the lib
var window = {}; //fake a window object for the lib
eval(postman.getGlobalVariable("jsrsasign-js")); //import javascript jsrsasign
...
@MaikStohn and @deinspanjer is this still an issue/feature request? As I understand there have been performed some YUI cleanup/removal of dependencies...
I have been able to install jsrasign in plv8 using the project plv8-npm. The YUI cleanup did help although I'm not quite sure why it is still being included when it is only being used for one small function that could easily be polyfilled. Regardless, I'm in good shape now and am fine closing this.
I needed to verify a JWT token from Google inside PostgreSQL. After some research, I determined that the quickest way I might be able to do it was using the plv8 language and running a standalone JS verifier.
I used your jsrsassign and managed to get it running although I had to hack out the YUI and other parts that were doing window.crypto related calls.
I don't expect this to be easily reusable by anyone else, but I thought I'd share it in case you are interested in providing a compact version of the JS as a module that could serve that need.
https://gist.github.com/deinspanjer/5f25e50653c83989dbaff283a1d46d6b
The text was updated successfully, but these errors were encountered: