Skip to content

Allow anonymous users #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix vars
  • Loading branch information
ahoulgrave committed Apr 16, 2020
commit 6824602ddf8d1f1fb1fe9f3ca3dd6f6aefedb6ab
4 changes: 2 additions & 2 deletions kong/plugins/oidc/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ function M.injectAnonymousUser(anonymousUserId)
end

ngx.req.set_header("X-Anonymous-Consumer", "true")
ngx.req.set_header("X-Consumer-Username", ngx.consumer.username)
ngx.req.set_header("X-Consumer-Id", ngx.consumer.id)
ngx.req.set_header("X-Consumer-Username", consumer.username)
ngx.req.set_header("X-Consumer-Id", consumer.id)
end

function M.has_bearer_access_token()
Expand Down