admin管理员组

文章数量:1305294

I have a nodejs application using the v1/sdk/authenitcate IDCS api to authenticate a user. This call is being invoked in a node js server side function via axios post call. The client ip address being logged in idcs is the server's ip and not the client's real ip. Tried passing the x-forwarded-for , x-real-Ip to the POST request.None of them worked. How can I pass the client's actual ip address to the IDCS call so that the logs display the client ip instead of the server ip.

Below is the headers object being passed to the v1/sdk/authenticate api

    headers : {
    "Content-Type":'application/json',
    "Authorization": 'Bearer '+token,
    "X-Forwarded-For": ClientIp,
    "X-Real-Ip": ClientIp
    }

How can I capture the client's real ip in the IDCS logs ?

}

本文标签: authenticationoracle IDCS sdkauthenticate api client ip addressStack Overflow