简体   繁体   English

如何为我在Google App Engine上部署的应用程序的Chrome插件绑定插件令牌

[英]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.

相关问题 如何在使用GAE Maven插件时在IDEA中调试Java Google App Engine应用程序? - How can I debug a Java Google App Engine app in IDEA while using the GAE Maven plugin? 您如何使用新的Google App Engine Maven插件升级已部署的版本? - How do you promote a deployed version with the new Google App Engine Maven plugin? 如何取消对 Google App Engine 插件的身份验证? - How to unauthenticate Google App Engine plugin? 如何在我的 Docker 自托管 Jitsi 服务器中为我的 Android 应用程序实现 jwt token prosody 插件? - How can I implement the jwt token prosody plugin in my Docker self-hosted Jitsi server for my Android application? gwt 应用程序未使用 appcfg 部署到谷歌应用程序引擎 - gwt application not deployed to google app engine with appcfg 我无法从Google App Engine上已部署的后端Servlet连接到我的Google Cloud sql数据库 - I can't connect to my google cloud sql database from my deployed backend servlet on the google app engine 谷歌应用引擎:maven或eclipse谷歌插件 - Google app engine: maven or eclipse google plugin 在系统中哪里可以找到App Engine Maven插件的当前安装版本? - Where can I find the current installed version of the App Engine Maven plugin in my system? 我们如何使用适用于Eclipse的新Google Cloud Plugin更新App Engine Java SDK? - How can we update the App Engine Java SDK Using the New Google Cloud Plugin for Eclipse? 如何使用Google App Engine插件从WAR中排除单元测试? - How to exclude unit tests from the WAR in with Google App Engine plugin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM