Skip to content

Commit

Permalink
used ctx.var instead of ngx.var
Browse files Browse the repository at this point in the history
  • Loading branch information
azilentech committed Mar 20, 2022
1 parent c1d1c8d commit bd91138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/authz-keycloak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ end
function _M.access(conf, ctx)
local headers = core.request.headers(ctx)
local need_grant_token = conf.password_grant_token_generation_incoming_uri and
ngx.var.request_uri == conf.password_grant_token_generation_incoming_uri and
ctx.var.request_uri == conf.password_grant_token_generation_incoming_uri and
headers["content-type"] == "application/x-www-form-urlencoded" and
core.request.get_method() == "POST"
if need_grant_token then
Expand Down

0 comments on commit bd91138

Please sign in to comment.