restify-jwt icon indicating copy to clipboard operation
restify-jwt copied to clipboard

restify middleware that validates a JsonWebToken (JWT) and sets the req.user with the attributes

Results 10 restify-jwt issues
Sort by recently updated
recently updated
newest added

What is the Shared Secret that is mentioned in the usage examples? I don't understand how the shared secret is specified or used. Any insight is appreciated.

``` node_modules/restify-jwt/lib/index.js:71 return next(restify.InvalidCredentialsError('No authorization token was found')); ^ TypeError: restify.InvalidCredentialsError is not a function at middleware (/home/jonatas.freitas/Projects/rta_api/node_modules/restify-jwt/lib/index.js:71:29) at call (/home/jonatas.freitas/Projects/rta_api/node_modules/restify/lib/chain.js:164:9) at next (/home/jonatas.freitas/Projects/rta_api/node_modules/restify/lib/chain.js:120:9) at Chain.run (/home/jonatas.freitas/Projects/rta_api/node_modules/restify/lib/chain.js:123:5) at Server._runUse (/home/jonatas.freitas/Projects/rta_api/node_modules/restify/lib/server.js:976:19)...

modified error handling to use restify-errors for all instances of errors for compatibility with restify > 4.x

Would it be possible for you to publish a new version that works with the latest version of Restify or at least publish the latest master as a `next` tag...

Hi, The restify-jwt code base does not support the latest version of restify (i.e. errors being moved out to separate library: https://github.com/restify/errors) Is there a new version of restify-jwt that...

It's misleading to put public key into options.secret. Existing code doing this will continue to function as expected.

First of all, thank you @amrav for making express-jwt to work with restify. It seems that express-jwt was updated around a month ago and I think that would be beneficial...

Hello, In the doc of your plugin, it's written that we can add our custom logic to manage unauthorized access. With this code: ``` javascript app.use(function (err, req, res, next)...