personium / app-uc-directory

Apache License 2.0
0 stars 2 forks source link

How to deploy

Watch the demo (don't forget to turn on the caption) on youTube.

  1. Log on to the target App Cell (e.g. directory) from Cell Manager.
  2. Install the BAR file (app-uc-directory.bar) to the target App Cell.
  3. Set the box's schema URL correctly.
  4. Create an App account and assign DirectoryOwner role to it.
  5. Download the file (register_directory_entry.js) and reflect the account information.

    /*
     * Replace the "***" with a valid App account name that have permission 
     * to write information to the installed Box.
     */
    var appAccountName = '***';
    
    /*
     * Replace the "***" with a valid App account password that have permission 
     * to write information to the installed Box.
     */
    var appAccountPassword = '***';

How to use it

Send a RESTful API to register an entry to the directory (OData). You just need to specify an existing Cell URL and the engine service will look up the Cell's profile and register the following properties to the directory.

By default, anyone can register to and read from the directory. However, you can modify the ACL of the engine service to limit user's access.

Restlet Client Example

  1. Install Restlet Client to Chrome.
  2. Import the Restlet Client scenario.
  3. Modify variables according to your environment.
  4. Register an existing Cell URL.