-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: multi-auth raise 500 error when use default conf #11145
Conversation
please also add test cases |
done, pls check again. |
@@ -54,6 +54,10 @@ function _M.check_schema(conf) | |||
if auth.type ~= 'auth' then | |||
return false, auth_plugin_name .. " plugin is not supported" | |||
end | |||
local ok, err = auth.check_schema(auth_plugin_conf, auth.schema) | |||
if not ok then | |||
return false, "plugin " .. auth_plugin_name .. " check schema failed: " .. err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also add a test case which shows this error would be raised if any auth_plugin has wrong configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, really appreciate it <3. I will re-review once the CI has completed running.
Description
Fixes: #11156
Related: #9893
Checklist