Mac-从浏览器传递参数启动桌面应用程序 [英] Mac - Launch desktop application from browser passing parameters

查看:319
本文介绍了Mac-从浏览器传递参数启动桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用.Net编写了一次单击部署的应用程序,该应用程序可在Windows计算机上运行.我需要从浏览器启动该应用程序,以便我可以基于当前浏览器会话将信息传递给该应用程序(HTTPHeader包含一个单点登录ID,该ID必须传递给该应用程序,以便它可以调用安全的网络服务).

I have written a click-once deployed application in .Net that runs on windows machines. I had a requirement to launch the application from a browser so that I can pass information to the application based on the current browser session (the HTTPHeadercontains a single-sign-on id that needs to be passed to the application so it can call secured web services).

因此,单击一次应用程序作为jsp上的链接提供,并且所需的id作为链接中的querystring参数传递,单击一次应用程序即可读取).

So the click-once application is provided as a link on a jsp, and the required id is passed as a querystring parameter in the link, which the click once application can read).

现在,我需要使Mac用户可以使用类似的功能.有什么方法不需要Java吗?我想在Objective C中编写代码,但是关于如何通过浏览器触发应用程序启动,传递必要的信息的问题仍然存在.

Now I need to make similar functionality available for Mac users. Is there any way to do this that doesn't require Java? I would like to write in Objective C, but then the question of how to trigger the launch of the application from the browser, passing the necessarily information remains.

流为:

  1. 用户点击链接到我们的网站
  2. 用户被路由到单点登录身份验证表单
  3. 用户提交表单并重定向到我们的网站(ID嵌入在HTTPHeader中)
  4. 服务器构建页面,带有指向单击一次"应用程序的链接,其ID附加为查询字符串参数
  5. 用户点击链接,下载并部署部署的应用程序并在用户计算机上具有完全信任的情况下单击即可(该应用程序使用代码签名证书进行了签名).
  6. 应用程序在用户计算机上本地运行,并在服务器上调用RESTful Web服务,并将单点登录ID作为cookie传递给Web请求,并允许Web请求通过.

由于我主要是Windows开发人员,因此如果有任何想法可以指出正确的方法,我将不胜感激.

I would appreciate any ideas that point me down the right path, as I am primarily a windows developer.

谢谢!

推荐答案

我刚刚看到了您对我的

I just saw your request to my original post on this topic.

这一需求暂时搁置了一段时间,但是我们可能追求的解决方案是拥有一个服务器端进程,该进程可以实时修改交付的Zip或DMG文件.附加信息将被插入到应用程序的Info.plist文件中.这不会使加密签名无效,也不需要下载任何其他内容.

The need for this was put on the back burner for a time, but the solution that we will probably pursue is to have a server-side process that modifies the delivered Zip or DMG file on-the-fly. The additional information would be inserted into the application's Info.plist file. This will not invalidate the cryptographic signature, and does not require anything additional to be downloaded.

这篇关于Mac-从浏览器传递参数启动桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆