Message Boards Message Boards

0
|
4777 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Deploying a manipulate and assigning a password

Posted 4 years ago

Would like to use a version of the example below to work with Manipulate.

Here is the example from the Permissions Help page:

obj03 = CloudDeploy[
  FormPage[{"text", "Text:"} -> "String", Classify["Spam", #text] &, 
   AppearanceRules -> "Title" -> "Spam Detector"], 
  Permissions -> {PermissionsKey["secret"] -> {"Execute"}}]

The example defines a password, secret, which must be entered to access the page. This works as expected.

Extending this to an example using Manipulate.

m02 = Manipulate[Plot[Sin[n x], {x, 0, 6 \[Pi]}]
  , {{n, 0.5}, 0.5, 10}]
obj02 = CloudDeploy[m02, 
  Permissions -> {PermissionsKey["secret"] -> { "Execute"}}]

Does not behave the same way. Typing in the password, does not show the Manipulate.

Apparently something different must be done for Manipulate. Please help. Thanks.

password entry page

POSTED BY: Robert McHugh
2 Replies
Posted 4 years ago

Hi Robert,

Try

Permissions -> PermissionsKey["secret"] -> All
POSTED BY: Rohit Namjoshi
Posted 4 years ago

Thanks! that helps. Wonder what are the minimum set of permissions to allow others to only run the Manipulate. Below are the results of my tests.

First, I checked the Permissions when using "->All" with the test:

Options[cd01, Permissions]

I saw the following

{Permissions -> {"Owner" -> {"Read", "Write", "Execute"}, 
   PermissionsKey["secret"] -> {"Read", "Write", "Execute", 
     "CellCreate", "CellDelete", "CellEdit", "EditRestricted", 
     "Evaluate", "IncrementalEvaluate", "Interact", "Save"}}}

Then, I tried a few tests to find what is required only to have the Manipulate run. This is what I came up with:

permListTest01 = {"Read", "Execute", "EditRestricted", "Evaluate", 
   "IncrementalEvaluate", "Interact"};

Are each of these required to allow others to operate a Manipulate on the Cloud? Is something missing?

Thanks for your help with this.

POSTED BY: Robert McHugh
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract