oauthjs / koa-oauth-server

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with koa in node.js
212 stars 81 forks source link

Add an option parameter to the authorize middleware #43

Open LucianoGanga opened 8 years ago

LucianoGanga commented 8 years ago

The problem is that when someone tries to use a custom authenticate handler in the oauth-server's authorize middleware, there's no way to pass it through koa-oauth-server. This PR adds the possibility of doing that.