Skip to content

Commit

Permalink
v2.7.8 detect invalid uri
Browse files Browse the repository at this point in the history
  • Loading branch information
iamruinous committed Sep 1, 2017
1 parent 6d9374e commit e4e55a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oauth-provider",
"version": "2.7.7",
"version": "2.7.8",
"description": "",
"main": "index.js",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/controllers/oauth-provider-controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class OauthProviderController
responseType = req.query.response_type
@_getRedirectUri {clientId, redirectUri, responseType, state}, (error, uri) =>
return res.status(error.code ? 500).send error: error.message if error?
return res.status(500).send error: "Redirect URI is invalid" unless uri?
debug 'redirecting to ', { uri }
res.redirect uri

Expand Down

0 comments on commit e4e55a8

Please sign in to comment.