+

Search Tips   |   Advanced Search

Registering IBM Notes as a consumer of the Activity Stream and Embedded Experience gadgets

IBM Connections, and Domino administrators can work together to facilitate seamless integration between IBM Connections, and IBM Notes and iNotes . Your administrator can export the Activity Stream and Embedded Experience gadgets and hand them off to the Domino administrator to be included in the corporate Widget Catalog where they can then be deployed to end users using Widget policies.

The Activity Stream widget is supported in the Notes client only. When the widget titled Updates, is installed, end users will see a new shortcut action in the Notes shortcut bar labeled Updates. The Updates tab opens automatically for the end user showing the activity stream.

The Embedded Experience widget is supported in both Notes and iNotes. When the widget titled Connections EE Gadget, is installed, it allows for emails from Connections to display as an Embedded Experience such that users can interact with Connections directly within their email.

An IBM Connections administrator can run a script that generates xml files for the Activity Stream and Embedded Experience gadgets. The files are created from six configuration files. The script reads in the template files, performs an oAuth registration to create the consumer data, and then generates six xml files in a user-specified directory. Then these six xml files are given to the Domino administrator who imports them into the Widget Catalog, completing the cycle. The jython script is in the bin directory as a sibling of oauthAdmin.py and other Connections jython scripts. The six configuration files are placed in the LotusConnections-config directory. The script is invoked :

  1. From a wsadmin prompt, run the following command: execfile('gadgetAdmin.py').

  2. From a wsadmin prompt, run the following command: NotesRegistrar.registerGadgets("appid","applabel","callbackurl","outputdir"). Where

    • appId is an identifier for the application we are registering. It can be anything you like such as MyGadgets.

    • applabel is a descriptive name for the client such as My Gadgets for Open Social.

    • callbackurl is where to redirect to when the gadget has been granted authorization. This should be: http://yourdominoserver.domainx.com/fiesta/gadgets/oauth2callback where yourdominoserver is the name of the shindig server; however, you should use https if the Domino Server is enabled for it.

    • outputdir is the location on disk that will contain the output from running the command. The outputdir must exist before running the command.

    For example:

    wsadmin>NotesRegistrar.registerGadgets("MyGadgets","My Gadgets for Open Social","http://yourdominoserver.domainx.com/fiesta/gadgets/oauth2callback","c:\test") 
    

    There is an optional fifth argument "secure" that defaults to "false". A value of "false" indicates that https is not being used and instead plain http is used. If provided and set to "true", the gadget URLs will be the secure https versions of the URLs. For example, NotesRegistrar.registerGadgets("appid","applabel","callbackurl","workingdir","false") is the same as calling NotesRegistrar.registerGadgets("appid","applabel","callbackurl","workingdir") and it generates gadget URLs with plain http. However, if the last argument is "true", then the URLs are generated with the https prefix. If the value of the forceConfidentialCommunications attribute in LotusConnections-config.xml is true, then the secure parameter should also be set to true. Result: When the script completes, the following six files can be found in the specified outputdir:

    • AS.Gadget.extension.xml

    • AS.Gadget.oauth.xml

    • AS.Gadget.proxy.xml

    • EE.Gadget.extension.xml

    • EE.Gadget.oauth.xml

    • EE.Gadget.proxy.xml

  3. Transfer these files to the Domino administrator for import.


Parent topic:
Administer the Widget container


Import task performed by the Domino administrator

The Domino administrator needs to be careful with the xml files because the *.oauth.xml files contain the consumer key and secret. The files should be moved to a secure and safe location on the local machine.

This process needs to be performed on the Domino side for the Activity Stream gadget and Embedded Experience gadget. Upon completion, the Activity Stream and Embedded Experiences gadgets can now be deployed to end users.

  1. Copy the AS*.xml, and EE*.xml files to a folder on the local machine.

  2. Open the widget catalog on the Domino server with a Notes id that has proper access to the Widget Catalog to publish and approve widgets.

    The Notes id requires the Admins role in the Widget Catalog and the Credential Store and Manager access to both of those databases.

  3. Open the All Widgets view and click Import.

  4. Navigate to the folder you created in step 1, select the AS.Gadget.extension.xml file, and then click Open.

  5. Click Yes and then click OK. The "Updates" document opens automatically and the Security Review Status indicates Approval Needed.

  6. Click Edit and then click Approve.

  7. In the Configure Proxy dialog box click OK. You should not have to edit any values in this dialog. The import in step 4 populates the field values in this dialog.

  8. In the Configure OAuth Consumer Information dialog box click OK. You should not have to edit any values in this dialog. The import in step 4 populates the field values in this dialog. The Security Review Status will indicate Approved by YourAdmin.

  9. Close the document.

  10. Repeat steps 2 through 9 for the EE*.xml files.