Skip to content

Commit

Permalink
[TMA-630][haoliu & llr] Using default blank in oidc_label when failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexuscream committed Feb 26, 2019
1 parent 227b8f8 commit 9a8c0de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kong/plugins/okta-auth/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ local function make_oidc(token_data)
local oidc_label = okta_api.get_oidc_label(oidc["cid"])

if oidc_label then
ngx.log(ngx.DEBUG, " Get Oidc label Success.")
oidc["Lab"] = oidc_label
ngx.log(ngx.DEBUG, " Get Oidc label Success. oidc_label: ", oidc_label)
else
ngx.log(ngx.ERR, " Get Oidc label failed.")
oidc_label = ''
end

oidc["Lab"] = oidc_label
return oidc
end

Expand Down

0 comments on commit 9a8c0de

Please sign in to comment.