strongloop / loopback-component-oauth2

oAuth 2.0 server for LoopBack
http://www.strongloop.com
Other
62 stars 63 forks source link

Hard-coded tokenPath config #4

Closed innerdaze closed 9 years ago

innerdaze commented 9 years ago

In the following snippet, the default value for the tokenPath config option is being used to configure JWT.

My guess is that this should be be using a reference to the passed config.

// [lib/oauth2-loopback.js:83]
passport.use('oauth2-jwt-bearer', new ClientJWTBearerStrategy(
    {audience: '/oauth/token', passReqToCallback: true},

Lee

raymondfeng commented 9 years ago

Fixed - see https://github.com/strongloop/loopback-component-oauth2/blob/master/lib/oauth2-loopback.js#L86