首页 \ 问答 \ ColdFusion和移动应用程序结构和安全性(ColdFusion and Mobile Application Structure and Security)

ColdFusion和移动应用程序结构和安全性(ColdFusion and Mobile Application Structure and Security)

概观

我正在寻找使用HTML5,jQuery和ColdFusion开始开发iOS应用程序。 我对此的理解是让jQuery为所有后端函数调用ColdFusion API。 大! 我的问题主要是关于页面结构和API安全性。

应用结构

在我的脑海中,我建议应用程序的实际结构应该类似于:

<html>
  <head>
    <script src="http://foo.bar/path/to/jquery.js"></script>
    <script src="http://foo.bar/path/to/api.js"></script>
    <script src="http://foo.bar/path/to/anyother.js"></script>
  </head>
  <body>
    ...
  </body>
</html>

这个想法是出于组织目的。 我不想在实际的应用程序中包含任何API调用。 我希望它位于远程机器上。 这将允许我进行编辑,而无需将应用程序重新提交到应用商店。

安全

这种结构会有安全隐患吗? 我有什么办法可以增强这种安全性吗? 也许只允许来自移动设备的API调用? 或者可能需要某种钥匙?

此外,当谈到实际的API本身。 该功能的安全性如何工作?

<cffunction name="newRemoteResponse" access="remote" output="false" returntype="struct">
    ....
</cffunction>

您建议使用哪些参数来确保最安全?


Overview

I'm looking to start developing iOS apps using HTML5, jQuery, and ColdFusion. My understanding of this is to have jQuery call the ColdFusion API's for all of he back-end functions. Great! My question is mostly about the page structure and API security.

Application Structure

In my head I suggested that the actual structure of the app should be similar to this:

<html>
  <head>
    <script src="http://foo.bar/path/to/jquery.js"></script>
    <script src="http://foo.bar/path/to/api.js"></script>
    <script src="http://foo.bar/path/to/anyother.js"></script>
  </head>
  <body>
    ...
  </body>
</html>

The idea of this is for organizational purposes. I don't want to include any API calls inside the actual app. I would like it to be located on a remote machine. This will allow me to make edits without resubmitting the app to the app store.

Security

Will this structure be a security risk? Is there anything I can do to enhance the security of this? Perhaps only allow API calls coming from a mobile device? Or perhaps require some sort of key?

Also, when it comes to the actual API itself. How would the function's security work?

<cffunction name="newRemoteResponse" access="remote" output="false" returntype="struct">
    ....
</cffunction>

What parameters would you recommend to make this the most secure?


原文:https://stackoverflow.com/questions/22539834
更新时间:2023-12-26 16:12

最满意答案

您可以使用以下方法设置接收位置更新的最小距离: https//developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String,%20long,%20float, %20android.location.LocationListener)

此外,无论应用程序是打开还是关闭,您都可以使用运行的服务来收听位置更新。 只要应用程序打开和/或设备启动,您就可以启动此服务。 有关这个问题的更多信息: 尝试在Android上启动时启动服务

这样它始终在运行,并将根据您的要求接收位置更新。


You can set a minimum distance for receiving location updates using i.e. the following method: https://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String,%20long,%20float,%20android.location.LocationListener)

Also, you can listen to location updates using a Service that runs regardless whether the app is open or closed. You can make this service start up whenever the app opens and/or the device boots up. For more info on that look at this question: Trying to start a service on boot on Android

This way it is always running and will receive location updates as per your requirements.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。