SkyeYoung commented on issue #12483:
URL: https://github.com/apache/apisix/issues/12483#issuecomment-3154551933

   > ngx.req.set_header("X-User-Sub", decoded.payload.sub)
   
   Your workaround is a viable solution.
   
   > Would you avoid serverless-pre-function in a production environment ?
   
   No, I wouldn't avoid it.
   
   It's just that if the code snippet is written incorrectly, it might cause 
APISIX to malfunction. It is best to test in the test environment first.
   
   If this is a function you absolutely need in your production environment, 
you might as well write a custom plugin. This way, you can use tools like git 
to track modifications to the plugin and ensure its stability.
   
   Please refer to the documentation for plugin development: 
https://apisix.apache.org/docs/apisix/plugin-develop/. 
   
   > I have another question, when you said "Tip: You can process the response 
or userinfo after", Does this mean there is a variable response ?
   
   Sorry, I'm saying that if you want to submit a PR to provide the feature you 
want (`$jwt_claim_azp`), you need to handle it here.
   
   I think this function is reasonable, but no one has added it before


-- 
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