搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

What is the best practice for retrieving plugin parameters from a server?

  • 無回覆
  • 1 有這個問題
  • 2 次檢視
more options

Suppose I have a plugin that communicates with a remote server. Furthermore, I'm a server administrator that would like certain components of the plugin to enable/disable dynamically. Depending on the permissions of the plugin user, that user may only access various components. The user may be a root user, admin user, regular user, etc. User permissions and accessibility are defined in my server - say in a MySQL database. Is there a set of best practices for defining such permissions and retrieving them in a client-side plugin?

Suppose I have a plugin that communicates with a remote server. Furthermore, I'm a server administrator that would like certain components of the plugin to enable/disable dynamically. Depending on the permissions of the plugin user, that user may only access various components. The user may be a root user, admin user, regular user, etc. User permissions and accessibility are defined in my server - say in a MySQL database. Is there a set of best practices for defining such permissions and retrieving them in a client-side plugin?