简体   繁体   English

验证/签署对我的 API 的请求来自我的应用程序并且没有被欺骗(React Native)

[英]Verifying/signing that a request to my API came from my app and was not spoofed (React Native)

Is it possible to verify that an API call to my server came from my app and was not spoofed with another HTTP request client or similar?是否可以验证对我的服务器的 API 调用来自我的应用程序,并且没有被另一个 HTTP 请求客户端或类似请求欺骗? I'm using React Native with Node on the back-end, and am using a JWT system for authentication.我在后端使用带有 Node 的 React Native,并且正在使用 JWT 系统进行身份验证。

Context: certain features are only unlocked for users that the app has detected are at a certain location.上下文:某些功能仅对应用检测到位于特定位置的用户解锁。 The only system I can think of for unlocking these is pretty weak - the front-end sends a request to the server with the user's location, and if the location fits then the features are unlocked.我能想到的唯一解锁这些功能的系统非常薄弱 - 前端向服务器发送带有用户位置的请求,如果位置合适,则解锁功能。 Obviously this request can be spoofed easily, unless I can sign them in a certain way that is unique to the app and is difficult to reverse-engineer.显然,这个请求很容易被欺骗,除非我可以以某种应用程序独有的方式对它们进行签名,并且难以进行逆向工程。

Any other approaches would be appreciated (eg detect the user's location from the IP address that the request was sent from?)任何其他方法将不胜感激(例如,从发送请求的 IP 地址检测用户的位置?)

you can use Signing certificates of your organisation.您可以使用您组织的签名证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 https 请求在我的 react-native 应用程序中不起作用? - why https request is not working in my react-native app? 验证该消息来自特定的应用程序/端点 - Verifying that message came from a specific app/end point React Native 应用程序没有响应我的本地 .net api - React Native app doesn't response my local .net api 反应原生我的应用程序不会显示来自 API GET 调用的任何结果 - React native my app wont show any results from API GET call 如何从我的 android React Native 应用程序打开另一个应用程序? - How to open another app from my android React Native app? 我有在 React Native 中从我的应用程序获取 apk 的问题 - i have propblem for getting apk from my app in react native 如何从浏览器打开我的 React Native App? - How can I open my React Native App from the browser? 所以我目前正在尝试将应用程序上传到 PlayStore,但我需要将我的反应原生项目从 api lvl 28 升级到 29 - So I am currently trying to upload an app to PlayStore but I need to upgrade my react native project from api lvl 28 to 29 检查请求是否来自Rails中的android App - Check if a request came from android App in rails http post API请求是如何来自我的应用程序的? - How identfy http post API request is from my app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM