Skip to content

Commit

Permalink
Merge pull request #1268 from Mashape/fix/oauth2-redirect-uri
Browse files Browse the repository at this point in the history
Closes #1267
  • Loading branch information
subnetmarco committed May 31, 2016
2 parents f69843d + d301d8b commit 34f25a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/plugins/oauth2/daos.lua
Expand Up @@ -11,6 +11,9 @@ end

local function validate_uris(v, t, column)
if v then
if #v < 1 then
return false, "at least one URI is required"
end
for _, uri in ipairs(v) do
local parsed_uri = url.parse(uri)
if not (parsed_uri and parsed_uri.host and parsed_uri.scheme) then
Expand Down

0 comments on commit 34f25a3

Please sign in to comment.