The functionality described on this site is available in Early Access only. It appears only in a preview environment and not in production. The content on this site is subject to change based on modifications made by product development and/or feedback provided by Relativity customers. Once we deploy Early Access functionality to RelativityOne production, this site will no longer display content until the next Early Access release is available in a preview environment.

OAuth2 clients

The OAuth 2.0 authorization framework enables a third-party application to obtain access to an HTTP service. OAuth2 clients allow you to configure external services and applications to authenticate against Relativity in a secure manner. For example, a client application can present the user with the Relativity login page to get an access token to call Relativity APIs. The application can then call the APIs to perform tasks for customizing e-discovery workflows and automation. For background information on OAuth2, see OAuth2 Specification.

OAuth2 clients can be used in conjunction with Relativity authentication providers and federated instances in different enterprise integration scenarios, including:

  • Relativity as an authentication portal for another instance of Relativity
  • Relativity as an authentication portal for another website
  • Authenticating to Relativity's APIs from a standalone application without needing a Relativity user's username and password
  • Embedding the Relativity login form in a native desktop application
  • Embedding the Relativity login form in a mobile application

To set up an OAuth2 client in Relativity, you must correctly determine the grant type required for your application. The OAuth2 client setup information also includes a client ID, a redirect URI, and a client secret key. These details will be used to validate your application and authorize the API calls. Occasionally it may be necessary to reset the client secret for security purposes.

This page contains the following information:

See this related pages:

Creating or editing an OAuth2 client

To create OAuth2 clients or edit information for an existing OAuth2 client:

  1. Open the OAuth2 Client tab.
  2. Click New OAuth2 Client to create a new OAuth2 client, or click Edit next to the OAuth2 client you want to edit. The OAuth2 Client Information form appears.
  3. Complete the fields on the form. Fields in orange are required.
    • Name – the descriptive name of the OAuth2 client. The name must be unique.
    • Enabled – yes/no value indicating whether the client will be given access to Relativity.

    • Flow Grant Type – the mechanism for acquiring an authentication token also known as OAuth2 grant type. Relativity supports the following grant types:
      • Client Credential – for applications such as background processes that may need to get an access token for their own account, outside the context of any specific user. This grant type requires a client secret.
      • Code – for apps running on a web server. The grant type is used to obtain both access tokens and refresh tokens and is optimized for server-side applications. The client must be capable of interacting with the resource owner’s user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server. This grant type requires a client secret.

        Note: You can't change the flow value when editing an OAuth2 client.

      • Implicit – for lightweight browser-based or mobile applications typically implemented using a scripting language such as JavaScript. The implicit grant type is used to obtain access tokens (it does not support the issuance of refresh tokens) and is optimized for public clients known to operate a particular redirection URI. The client receives the access token as the result of the authorization request. This grant type does not require a client secret.
      • Resource Owner – suitable in cases where the resource owner has a trust relationship with the client, such as the device operating system or a highly privileged application. The authorization server should take special care when enabling this grant type and only allow it when other flows are not viable. This grant type can be used for clients capable of obtaining the resource owner’s credentials (username and password, typically using a command line prompt). It is also used to migrate existing clients using direct authentication schemes such as HTTP Basic or Digest authentication to OAuth by converting the stored credentials to an access token. This grant type requires a client secret.
    • Redirect URLs – the URLs that the user can be redirected back to after the request is authorized. Specify values only if Implicit or Code are selected in the Flow field. The URLs must include the http or https protocol prefix.
    • Context User – Relativity user context for OAuth2 client authorization. This enables an administrator to restrict the access privileges on an OAuth2 client based on the user's permissions as well as audit. Context User is required if Client Credentials is selected as the OAuth2 flow, and can't be specified for other flows.
    • Access Token Lifetime - the duration (in minutes) for which access tokens issued to the clients are valid. The recommended value varies depending on the specified OAuth2 flow:
  4. Click Save. The form displays the new OAuth2 client with these generated field values:
    • Enabled – yes/no value indicating whether the client will be given access to Relativity.
    • Flow Grant Type - the mechanism for acquiring an authentication token also known as OAuth2 grant type.
    • Redirect URLs - the URLs that the user can be redirected back to after the request is authorized.
    • Access Token Lifetime - the duration (in minutes) for which access tokens issued to the clients are valid.
    • IsSystem – specifies whether the OAuth2 client is part of an internal Relativity application.

    • Client ID – the unique identifier for the Client autogenerated by Relativity.
    • Client Secret – the unique secret used by the client. Also auto generated by Relativity if you select Client Credential, Resource Owner, or Code as the value of the Flow field.

You have set up Relativity for access by an OAuth2 client application.

Resetting a client secret

You can reset an OAuth2 client secret for the following Flow values (grant types):

  • Client Credential
  • Resource Owner
  • Code

To reset an OAuth2 client secret:

  1. From the OAuth2 client tab, locate and open the OAuth2 client you wish to delete.
  2. Click Reset Secret in the OAuth2 Client console.

    OAuth2 Client console

  3. From the confirmation dialog, click Ok. The OAuth2 client secret is reset.

Deleting an OAuth2 client

To delete an OAuth2 client:

  1. From the OAuth2 client tab, locate and open the OAuth2 client you wish to delete.
  2. Click Delete.
  3. From the confirmation dialog, click Ok. The OAuth2 client is removed.

Note: System clients can't be deleted.

Viewing an OAuth2 client audit history

Use the OAuth2 client audit history to view all actions taken on a record. Use this information to view what the values were prior to a change.

To view an OAuth2 client's audit history:

  1. From the OAuth2 client tab, locate and click the OAuth2 client for which you wish to view its history.
  2. Click View Audit. A dialog appears, listing all actions taken on that OAuth2 client.
  3. (Optional) Using the Export to File drop-down list at the bottom of the dialog, click Go to export the following audit history details in a .CSV file:
    • User Name
    • Action
    • Timestamp
  4. Close the dialog when finished viewing the audit.