Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Add user-specific permissions keys to a cloud object
ResourceFunction["DedicatedPermissionsKey"][co,users] sets up the CloudObject co with dedicated permissions keys for each of the users. | |
ResourceFunction["DedicatedPermissionsKey"][] within a cloud evaluation, retrieves the user data associated with the provided permissions key. | |
ResourceFunction["DedicatedPermissionsKey"]["StoreResults",expr] within a cloud evaluation, stores the expr is association with the provided permissions key. | |
ResourceFunction["DedicatedPermissionsKey"]["RevokeKey"] within a cloud evaluation, removes the provided permissions key from the permissions of the cloud object. | |
ResourceFunction["DedicatedPermissionsKey"]["GetResults",co] retrieves stored results for the CloudObject co. | |
ResourceFunction["DedicatedPermissionsKey"]["Clear",co] removes dedicated permissions keys from a cloud object. |
| {u1,u2,…} | a list of arbitrary user information to associate with automatically generated permissions keys |
| <|"key1"→u1,…|> | manually specified permissions keys for each user |
Deploy a cloud object:
| In[1]:= |
| Out[1]= |
Create custom URLs for each user:
| In[2]:= |
| Out[2]= | ![]() |
Use one of the URLs:
| In[3]:= |
| Out[3]= |
Without the key, execution is denied:
| In[4]:= |
| Out[4]= |
Create a cloud object that returns the identity of a permissions key owner:
| In[5]:= | ![]() |
| Out[5]= |
Create permissions keys:
| In[6]:= |
| Out[6]= | ![]() |
Use an authenticated link:
| In[7]:= |
| Out[7]= |
Create an API that allows each user to access the API one time and stores the results of their computation:
| In[8]:= | ![]() |
| Out[8]= |
Create permissions keys:
| In[9]:= |
| Out[9]= | ![]() |
Use an authenticated link:
| In[10]:= |
| Out[10]= |
Attempting to use the same key again fails:
| In[11]:= |
| Out[11]= |
Get the stored results:
| In[12]:= |
| Out[12]= |
Deploy a cloud object with dedicated permissions keys:
| In[13]:= |
| Out[13]= |
| In[14]:= |
| Out[14]= | ![]() |
Use Information to see the permissions keys:
| In[15]:= |
| Out[15]= | ![]() |
Clear the dedicated permissions keys:
| In[16]:= |
The permissions keys are no longer in the cloud object information:
| In[17]:= |
| Out[17]= |
This work is licensed under a Creative Commons Attribution 4.0 International License