Last updated

User Context Service

A user in SLB Digital Platform could be associated to one or more billing accounts, departments and data partitions. Their access to various platform offerings is based on the selected user context. Context service is responsible for storing and returning last set context of a user.

Steps to access the service

  1. In order to access the service, you are required to have the AppKey and the AccessToken. Below are the steps to get the appKey and AccessToken.
    • [AppKey] can be obtained from My Apps. Make sure your App subscribes CCM product.
    • [Access Token] can be obtained by sending request below using SLB Authenticator

SLB Authenticator information can be found at SAUTH

Multi-Context Support

By default applications in SLB Digital Platform work with the latest set context by the user.

However, an application providing a niche capability and not connected to other applications, could support multi-context behaviour if required. To enable such behaviour-

  • An application could store the user context information locally at the time of launch. Any subsequnet calls could be made in this context only.
  • Application could allow user to switch to a different context in another browser/tab without impacting the operations started in previous window/tab/browser.
  • A call to context service is required only to get latest set context of the user.
  • Application could allow user access as long as they have a valid subscription.
  • Application will have to build workflows to expire cache/cookie values to prevent unauthorized access.