Skip to content

Commit

Permalink
token_introspection.lua: warning when introspection endpoint is not a…
Browse files Browse the repository at this point in the history
…vailable
  • Loading branch information
eguzki committed Jan 22, 2024
1 parent 858dd7e commit 1a0be6a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a0be6a

Please sign in to comment.