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
- Client secret (obtained when application is registered)
- ContextIdentifier (tenant identity)
- System user token (application is authenticated)
- Use our REST API, or
- Use one of our nuget packages
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:- Read the partner’s private PEM file.
- Sign system user token.
- Send request to SuperOffice.
- Gets the response to obtain the JWT.
- Validate JWT token.
- Extract the system user ticket.
REST
NPM package.json file for NodeJS REST example.
NPM package.json file for NodeJS REST example.
package.json file
index.js code
index.js