[英]How can I bind plugin token with my chrome plugin for the application deployed on Google App Engine
I an developing a plugin in Chrome and the entire application is going to get deployed on Google App Engine. 我正在用Chrome开发插件,整个应用程序都将部署在Google App Engine上。 The programming language on the server side is Java.
服务器端的编程语言是Java。
I need to generate a unique key or token whenever my plugin is downloaded and need to bind the generated key through manifest file of my plugin so that I would be able to detect the request source as to which plugin sent me the request on my sever. 每当我下载插件时,我都需要生成一个唯一的密钥或令牌,并且需要通过插件的清单文件来绑定生成的密钥,这样我就能够检测到哪个插件在服务器上向我发送了请求的请求源。
How I should go about to achieve the result? 我应该如何去取得结果?
One of the option is that while downloading I write the generated key to the plugin manifest file. 选项之一是,在下载时,我将生成的密钥写入插件清单文件。 But Google App Engine doesn't allow us to write in a file.
但是Google App Engine不允许我们写入文件。 So that option cannot be considered.
因此,不能考虑该选项。
Managing the operation through Blobstore is an option. 通过Blobstore管理操作是一种选择。 But is it the appropriate way to handle the problem or is there any other way to tackle the problem?
但这是解决问题的适当方法还是有其他解决方法?
Create an entity in the datastore, and use the entity id. 在数据存储区中创建一个实体,然后使用实体ID。
You can store plugin info in the entity too. 您也可以在实体中存储插件信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.