简体   繁体   中英

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. The programming language on the server side is 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. So that option cannot be considered.

Managing the operation through Blobstore is an option. 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.

You can store plugin info in the entity too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM