Skip to main content
To get the ticket, you must send a request containing a signed version of your system user token to the partner system user service endpoint. The system user token is on of the claims in the id_token received the initial administrative authentication.

Pre-requisites

There are several ways to obtain a system user ticket:
  1. Use our REST API, or
  2. Use one of our nuget packages
Both options require a signed version of the system user token. Please read the How to sign a system user token documentation to learn how to do that part of this flow.

Use the REST API

SuperOffice CRM Online exposes one REST endpoint for conducting the exchange: https://{environment}.superoffice.com/Login/api/PartnerSystemUser/Authenticate The following example is demonstrates the HTTP request.

Use a nuget package

We provide the following .NET nuget packages to help perform the task.

SuperOffice.WebApi (preferred)

How to get system user ticket

The following example code has an extensive amount of logging to the console. This lets you see the output from each step. The final output is the system user ticket. It performs the following steps:
  1. Read the partner’s private PEM file.
  2. Sign system user token.
  3. Send request to SuperOffice.
  4. Gets the response to obtain the JWT.
  5. Validate JWT token.
  6. Extract the system user ticket.

REST

package.json file

index.js code

index.js