Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nginx-jwt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ function M.auth(claim_specs)

-- write the X-Auth-UserId header
ngx.header["X-Auth-UserId"] = jwt_obj.payload.sub
jwt_obj.token = token;
return jwt_obj;
end

function M.table_contains(table, item)
Expand Down