Skip to content

Commit

Permalink
Support POST params in authorize requests. Closes #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
ammmir committed Jan 22, 2013
1 parent 074f9a8 commit 34c92ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Expand Up @@ -119,11 +119,11 @@ OAuth2Provider.prototype.oauth = function() {
}); });


} else if(req.method == 'POST' && self.options.authorize_uri == uri) { } else if(req.method == 'POST' && self.options.authorize_uri == uri) {
var client_id = req.query.client_id, var client_id = (req.query.client_id || req.body.client_id),
redirect_uri = req.query.redirect_uri, redirect_uri = (req.query.redirect_uri || req.body.redirect_uri),
response_type = req.query.response_type || 'code', response_type = (req.query.response_type || req.body.response_type) || 'code',
state = req.query.state, state = (req.query.state || req.body.state),
x_user_id = req.query.x_user_id; x_user_id = (req.query.x_user_id || req.body.x_user_id);


var url = redirect_uri; var url = redirect_uri;


Expand Down

0 comments on commit 34c92ad

Please sign in to comment.