Re: [abacus] Securing REST endpoints using OAuth bearer access token
Jean-Sebastien Delfino
Exactly. We're already using the jsonwebtoken [1] library for the handling
toggle quoted message
Show quoted text
of JWT tokens. The work we've been discussing here is more about integrating that token validation and the authorization logic in the rest of our code, and in particular where do we hook the token validation, before or after our incoming request validation code? For a more comprehensive authentication solution (which we've not really started to work on), I'd suggest to look at a library like Passport [2] for example which works well with the Express framework we're using and comes with all kind of authentication strategy plugins, incl. support for JWT with these plugins [3] for example. [1] https://www.npmjs.com/package/jsonwebtoken [2] https://www.npmjs.com/package/passport [3] https://www.npmjs.com/search?q=passport+jwt - Jean-Sebastien On Wed, Sep 30, 2015 at 5:30 PM, Filip Hanik <fhanik(a)pivotal.io> wrote:
I wouldn't recommend writing this library by hand when there are plenty of |
|