Skip to content

Commit ed8ba2a

Browse files
committed
token_introspection.lua: warning when introspection endpoint is not available
1 parent b86c9dc commit ed8ba2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gateway/src/apicast/policy/token_introspection/token_introspection.lua

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ function _M:access(context)
111111
end
112112

113113
ngx.log(ngx.INFO, 'token introspection for access token ', access_token, ': token not active')
114+
else
115+
ngx.log(ngx.WARN, 'token instropection cannot be performed as introspection endpoint is not available')
114116
end
115117

116118
ngx.status = context.service.auth_failed_status

0 commit comments

Comments
 (0)