Skip to content

Commit c6c2432

Browse files
committed
Revert "Pass the http status code to the caller"
This reverts commit 59f743f.
1 parent 0732003 commit c6c2432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kong/plugins/access-token-introspection/access.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function _M.run(conf)
8181
end
8282

8383
if _M.conf.require_success and (res.status ~= 200 or res.body["active"] ~= true) then
84-
_M.error_response("The resource owner or authorization server denied the request.", res.status)
84+
_M.error_response("The resource owner or authorization server denied the request.", ngx.HTTP_UNAUTHORIZED)
8585
end
8686

8787
for k, v in pairs(_M.conf.introspection_map.headers) do

0 commit comments

Comments
 (0)