api - WSO2: passing the caller's IP address to the backend -


say instance of wso2's api manager receives api calls external client, possible pass caller's ip address backend (in header example, other solutions welcome too)? if yes how?

http header way it. can create sequence , attach api.

<?xml version="1.0" encoding="utf-8"?> <sequence xmlns="http://ws.apache.org/ns/synapse" name="sample">     <property name="client_ip" expression="get-property('axis2', 'remote_addr')" scope="transport"/> </sequence> 

if have proxy before api manager, may not able identify real client using remote_addr. ip of proxy. in such cases can use x-forwarded-for http header.


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -