简体   繁体   中英

How can I find client IP on Third-party registration?

In my app, I allow users to register by LinkedIn and Facebook. The user push button, that open request to the third-party api (oauth 2.0), and once the authentication completed - the third-party send request to our app with the user details.

Now, can i get the user IP from this request? or the IP on this request is of the third party?

I can cause the user to call our app when pushing the registration button and request authentication from the app later, after getting user IP, but it is less convenient and less natural.

I'm using .net thanks!

我在本地主机上对其进行了测试,令我惊讶的是,从Facebook发送的请求的客户端IP是我的客户端IP 127.0.0.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM