Skip to content

Commit 6ce4636

Browse files
author
Vishnu Mohan
committed
Fix to use upn after copy-paste from email section
1 parent e562431 commit 6ce4636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx/lua/oidc_auth_proxy_pass.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ end
109109
-- Only authorize a valid user, based on their User Principal Name (UPN), if specified
110110
if is_not_empty(os.getenv("OIDC_UPN")) then
111111
ngx.log(ngx.DEBUG, "Authorizing UPN: " .. os.getenv("OIDC_UPN") .. " against " .. tostring(res.user.upn))
112-
if res.user.email ~= os.getenv("OIDC_UPN") then
112+
if res.user.upn ~= os.getenv("OIDC_UPN") then
113113
ngx.exit(ngx.HTTP_FORBIDDEN)
114114
end
115115
end

0 commit comments

Comments
 (0)