beardnick commented on code in PR #11824:
URL: https://github.com/apache/apisix/pull/11824#discussion_r2134371109


##########
apisix/plugins/openid-connect.lua:
##########
@@ -528,6 +544,18 @@ local function required_scopes_present(required_scopes, 
http_scopes)
     return true
 end
 
+local function validate_claims_in_oidcauth_response(resp)
+    if not generic_claim_validator then
+        return true, nil
+    end
+    local data = {
+        user  = resp.user,

Review Comment:
   If these fields are empty and marked as required in the claim schema, the 
validation will fail and an error will be generated.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to