Skip to content

Commit

Permalink
Merge pull request #476 from Gingonic/feature/oauth_authenticated_use…
Browse files Browse the repository at this point in the history
…rid_fix

Added authenticated_userid to password grant
  • Loading branch information
subnetmarco committed Aug 21, 2015
2 parents b00feae + f162028 commit 906d8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/oauth2/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ local function issue_token(conf)
if not ok then
response_params = scopes -- If it's not ok, then this is the error message
else
response_params = generate_token(conf, client, nil, table.concat(scopes, " "), state)
response_params = generate_token(conf, client, parameters.authenticated_userid, table.concat(scopes, " "), state)
end
end
elseif grant_type == GRANT_REFRESH_TOKEN then
Expand Down Expand Up @@ -407,4 +407,4 @@ function _M.execute(conf)
ngx.ctx.authenticated_entity = credential
end

return _M
return _M

0 comments on commit 906d8cf

Please sign in to comment.