<div dir="auto">Nice folks.<div dir="auto">I'll try do it.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 9, 2018 12:17 PM, "Eric Wittmann" <<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Note that, with just a little bit of java expertise, you can easily create your own policy plugin. The documentation for doing so is quite good (IMO):<div><br></div><div><a href="http://www.apiman.io/latest/developer-guide.html#_plugins" target="_blank">http://www.apiman.io/latest/<wbr>developer-guide.html#_plugins</a><br></div><div><br></div><div>Also there are plenty of examples here:</div><div><br></div><div><a href="https://github.com/apiman/apiman-plugins" target="_blank">https://github.com/apiman/<wbr>apiman-plugins</a><br></div><div><br></div><div>You could start with the no-op policy (is a valid, working policy plugin but doesn't do anything) and the simple-header-policy (does things with headers).</div><div><br></div><div>-Eric</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 8:55 AM, Marc Savy <span dir="ltr"><<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The simple header policy can't do that directly as I recall. As Eric<br>
suggests you should write your own custom policy to achieve this. It<br>
should be really simple -- probably just a few lines!<br>
<div class="m_6943625019263650051HOEnZb"><div class="m_6943625019263650051h5"><br>
On 7 March 2018 at 18:56, Eric Wittmann <<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>> wrote:<br>
> I can't remember if there is a policy for this already. If not, it's fairly<br>
> trivial to write a custom policy. Thoughts Marc?<br>
><br>
> On Wed, Mar 7, 2018 at 10:01 AM, Renato Barros <<a href="mailto:renalexster@gmail.com" target="_blank">renalexster@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi folks,<br>
>><br>
>> I'd like to know if there is some way to add the Client remote IP on my<br>
>> Request Header from API Man.<br>
>><br>
>> I need to add a Simple Header Policy with a "X-Forwarded-For" containing<br>
>> the client remote ip.<br>
>><br>
>> My backend is getting the APIMan IP as remote client, but what I need get<br>
>> to client IP.<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Apiman-user mailing list<br>
>> <a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
>><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Apiman-user mailing list<br>
> <a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
><br>
</div></div></blockquote></div><br></div>
</blockquote></div></div>