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

Returning request in the password exchange #204

Open
KathrynmHansen opened this issue Apr 27, 2017 · 0 comments
Open

Returning request in the password exchange #204

KathrynmHansen opened this issue Apr 27, 2017 · 0 comments

Comments

@KathrynmHansen
Copy link

KathrynmHansen commented Apr 27, 2017

It would be awesome if the request was returned in the password exchange so more information about the request can be used, like the IP address of the computer that the request was sent from.

I would do it like this in the file /lib/exchange/password.js. I can submit a pull request if necessary.
try {
var arity = issue.length;
if (arity == 8){
issue(client, username, passwd, scope, req.body, req.authInfo, req, issued);
} else if (arity == 7) {
issue(client, username, passwd, scope, req.body, req.authInfo, issued);
} else if (arity == 6) {
issue(client, username, passwd, scope, req.body, issued);
} else if (arity == 5) {
issue(client, username, passwd, scope, issued);
} else { // arity == 4
issue(client, username, passwd, issued);
}
} catch (ex) {
return next(ex);
}

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

1 participant