From 1a0be6a2e7af708cfb041713471d908e39f3a8a4 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Mon, 22 Jan 2024 10:04:02 +0100 Subject: [PATCH] token_introspection.lua: warning when introspection endpoint is not available --- .../apicast/policy/token_introspection/token_introspection.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/src/apicast/policy/token_introspection/token_introspection.lua b/gateway/src/apicast/policy/token_introspection/token_introspection.lua index d76d7d844..af01c6972 100644 --- a/gateway/src/apicast/policy/token_introspection/token_introspection.lua +++ b/gateway/src/apicast/policy/token_introspection/token_introspection.lua @@ -113,6 +113,7 @@ function _M:access(context) ngx.log(ngx.INFO, 'token introspection for access token ', access_token, ': token not active') end + ngx.log(ngx.WARN, 'token instropection cannot be performed as introspection endpoint is not available') ngx.status = context.service.auth_failed_status ngx.say(context.service.error_auth_failed) return ngx.exit(ngx.status)