ElmCompany / 3scale-profile-share-policy

An accounts' profile sharing policy for APICast component in 3scale AMP
MIT License
3 stars 2 forks source link

Account custom fields #1

Open harveycggit opened 2 months ago

harveycggit commented 2 months ago

Thanks for this excellent plugin - a couple questions:

  1. What is the required format of the liquid to use in a policy, it it {{ account.x }} for account information?
  2. If I add a custom field to the 3scale account, do I need to modify your code to pick up that field or will it be automatically available? If I need to modify, can you give me a quick pointer?

Thanks so much, Charles harvey

abarrak commented 1 month ago

Hi @harveycggit,

Apology on the late reply.

Once you load it, the plugin will seamlessly add general info about the caller client (its id, name, plan, plan name) in the headers for the incoming request, then pass it to the target backends (end products APIs). Additionally, if you define custom fields from APICast for your clients it will be propogated under X-Api-Gateway-Account-Info to the target backend.

harveycggit commented 1 month ago

Thank you so much for the response Abdullah that clears it all up for me. This is an excellent plugin! Best, Charles

On Wednesday, October 16, 2024 at 07:37:09 AM EDT, Abdullah Barrak ***@***.***> wrote:  

Hi @harveycggit,

Apology on the late reply.

Once you load it, the plugin will seamlessly add general info about the caller client (its id, name, plan, plan name) in the headers for the incoming request, then pass it to the target backends (end products APIs). Additionally, if you define custom fields from APICast for your clients it will be propogated under X-Api-Gateway-Account-Info to the target backend.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>