Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KoaOAuthServer.prototype.authenticate lack of response #39

Closed
guojinlong opened this issue Apr 12, 2016 · 3 comments
Closed

KoaOAuthServer.prototype.authenticate lack of response #39

guojinlong opened this issue Apr 12, 2016 · 3 comments

Comments

@guojinlong
Copy link

KoaOAuthServer.prototype.authenticate = function() {
var server = this.server;

return function *(next) {
var request = new Request(this.request);
var response = new Response(this.response);

try {
  this.state.oauth = {
    token: yield server.authenticate(request,response)
  };
} catch (e) {
  return handleError.call(this, e);
}

yield* next;

};
};

@thibremy
Copy link

Hi

@guojinlong
I already do a PR (#35), you can use it if you want

@guojinlong
Copy link
Author

Thank you. I close this issue?

@thibremy
Copy link

It's can be useful to other people to see this issue.
After all this PR is not merged yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants