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

Added support for non-header bearer tokens via proxy around Koa request

Open brownstein opened this issue 9 years ago • 0 comments

This is a fix for issue #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 a proxy and overrides .get to rectify the issue.

I'm a little ambivalent about adding the node-proxy dependency given that Harmony proxies are supported in recent nodes, but I think its probably the most universally-compatible way to do this.

brownstein avatar Feb 29 '16 17:02 brownstein