Skip to content

Commit

Permalink
Update oidc.lua (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pothuraju Srinivas authored and qiujian16 committed Feb 2, 2018
1 parent 053f8f1 commit 3678cd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootfs/opt/ibm/router/nginx/conf/oidc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ local function validate_policy_or_exit()
return pdp_exit_403()
end

-- @posriniv: This should be removed after making the required changes to PDP code
uri = method.." "..ngx.var.request_uri
local list = {}
for word in string.gmatch(ngx.var.request_uri,'([^/]+)') do table.insert(list,word) end
uri = method.." /"..list[1].."/"
if list[1] == "idmgmt" then
uri = method.." /"..list[1].."/"
end
ngx.log(ngx.NOTICE, "Full URI = ", uri)

ngx.log(ngx.NOTICE, "New Token =", auth_token)
Expand Down

0 comments on commit 3678cd0

Please sign in to comment.