You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2023/01/09 02:30:20 UTC

[GitHub] [apisix] starsz commented on a diff in pull request #8148: feat(openid-connect): expose unauth_action parameter in lua-resty-openidc

starsz commented on code in PR #8148:
URL: https://github.com/apache/apisix/pull/8148#discussion_r1064249464


##########
apisix/plugins/openid-connect.lua:
##########
@@ -328,15 +336,26 @@ function _M.rewrite(plugin_conf, ctx)
         -- Either token validation via introspection endpoint or public key is
         -- not configured, and/or token could not be extracted from the request.
 
+        local unauth_action = conf.unauth_action
+        if unauth_action ~= "auth" then
+            unauth_action = "deny"
+        end

Review Comment:
   It looks like if `unauth_action` is "pass", it will be "deny" .



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org