Setting up Protocols.io integration

This section is for administrators - if you are looking for help on connecting to Protocols.io as an end-user of RSpace, please see Protocols.io Integration

Aim of this document

This section explains how, as an RSpace admin, you can set up RSpace to enable users to browse and import protocols into RSpace directly from protocols.io.

You don't need to do this if your RSpace web address has .researchspace.com domain. RSpace is supplied with default clientId and clientSecret. This work is only necessary if you prefer to create your own ProtocolsIO RSpace app for your users.

This is a one-off step - it does not need to be done for every RSpace user!

Pre-requisites
  • An account on protocols.io
  • Access to RSpace server in order to set in clientIds and secret you will acquire from protocols.io
  • The RSpace server must allow 2-way HTTPS communication with protocols.io
You might consider using a service email account for protocols.io rather than a personal email account, so that other staff can maintain the App if you leave your organisation, or are away on leave, for example.

Setting up the app on protocols.io

  1. Navigate to the protocols.io developer page at https://www.protocols.io/developers. You will see a page like this (we've masked over our actual secrets here):
  2. Note the client id and client secret.
  3. In the section 'redirect URls', enter the RSpace URL that protocols.io will call back to. If your RSpace is at https://rspace.myuniversity.edu, then enter https://rspace.myuniversity.edu/apps/protocolsio/redirect_uri
    and press return to save the details. Reload the page to make sure that your URL was saved properly.

Steps in RSpace

  1. Connect to the RSpace server using ssh, or Putty, or your preferred client
  2. Open /etc/rspace/deployment.properties
    and add the following properties:
    protocolsio.client.id=<the client ID from protocols.io>
    protocolsio.secret=<the client secret from protocols.io>
  3. Save the file and restart RSpace

Testing the App

  1. Logon to RSpace web application as an RSpace user and open 'Apps' page
  2. Open Protocols.io tab and click 'Connect'
  3. You should be able to go through authentication flow with Protocols.io
  4. Now go to Workspace and click 'Create->from Protocols.io' which should open a view of your Protocols.io documents:


How did we do?


Powered by HelpDocs

Powered by HelpDocs