Named Sessions
  • 13 Sep 2022
  • 2 Minutes to read
  • Dark
    Light

Named Sessions

  • Dark
    Light

Article Summary

Overview

A Named Session allows for a specific user account to pass in when executing a Flow via REST, without exposing the user account information. To relay the data properly, a Session ID is automatically applied to the generated URL when the Named Session is selected. 

Named Sessions do not expire; if expiration is needed, a JSON Web Tokens can be configured instead.


Creating a Named Session

This example will demonstrate how to create a Named Session and generate the appropriate REST URL from the Flow. 

  1. In the Decisions Studio, navigate to System > Security > Named Sessions and select Add Named Session from the Global Action Bar.
  2. When the window appears, enter a name for the session. Use the PICK button under ForAccountId to select the user account it applies to. 
  3. Select SAVE once complete and refresh the FOLDER VIEW to confirm the Named Session appears.


  4. Now that the Named Session is configured, it can be selected on the INTEGRATION DETAILS page for a Designer element, such as a Flow or Form. 
  5. Right-click the element's name and in the Action Menu, navigate to Run [Advanced] > Integration > View Integration Details
  6. In the View Integration Details window, use the drop-down list for Authentication Type and choose the name of the Named Session.
  7. Upon the selection, all service API URLs will appear for the corresponding integration type (typically GET or POST by default).
    Clear Session URL Extension
    Add &clearsession=true to the end of the URL to ensure that each time the user exits the browser after completing the Named Session Flow/Form, the session is cleared. This will allow another user to run the same Flow/Form on the same machine with a different Named Session.



Testing the Named Session

Once a named session has been configured, the named session can be tested using the Test section from the Integrations Details page of a Designer Element. To access the page, the Designer Element, such as a Flow, will need to be configured as an API Service. Once this has been configured:

  1. From the Setup drop down menu, select the named session
  2. Select the TEST page, a URL will be selectable as a Get or Post call. Select either option then select the Run button.
  3. The Flow will be executed using the named session for authentication.

In addition, the generated URL can be used in other applications such as Postman to validate the results. The URL  can be copied and used as a Get/Post request, depending on the requirements. 

For Postman, a collection can be generated and imported for testing using the DOWNLOAD POSTMAN COLLECTION button. The request generated from this method will be a POST call.




For further information on Integrations, visit the Decisions Forum.

Was this article helpful?