koa-oauth-server icon indicating copy to clipboard operation
koa-oauth-server copied to clipboard

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with koa in node.js

Results 23 koa-oauth-server issues
Sort by recently updated
recently updated
newest added

Using oauth2-server 3.x, app.oauth.authenticate() gives this error: Invalid argument: `response` must be an instance of Response The problem was fixed adding the Response object to the function call

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...

A new release needs to be made with all of the changes from the past few months

using version: 1.0.1 Following the examples exactly, even resorted to just copy/pasting. Doesn't seem to work at all when using generators for the model. Switched to functions, that take a...

I noticed that this repo deps on a fork version of node-oauth2-server. And some of its unitTest failed.

When I use `KoaOAuthServer.prototype.authenticate`, I get this error `Invalid argument: response must be an instance of Response`. With this PR I force authenticate to have an oauth2-server.Response.

var headerToken = this.req.get('Authorization'), getToken = this.req.query.access_token, postToken = this.req.body ? this.req.body.access_token : undefined; console.log('getToken:',getToken); console.log('headerToken:',headerToken); console.log('postToken:',postToken); getToken: undefined headerToken: postToken: b80ba6196e247b0fae2d9226d2c722a5d01ae90b methodsUsed: 2 question:why headerToken != undefined

your example was broken in so many places... I tried to fix it, following the logic I saw there, but the last one cannot even be fixed, its a contradiction...

This is a fix for [issue #30](https://github.com/thomseddon/koa-oauth-server/issues/30) - Koa requests return an empty string when a header is missing instead of oauth2-server's expected undefined. This PR wraps authorize requests with...