This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.


The Salesforce broker cannot be registered due to the following error:



The error appears as follows: 

"Error","SourceCode.SmartObjects.ServiceBroker [ExecuteSmartObject]","10702 An error occurred in the K2_Management Service Instance. System.Exception: OAuth token requires authorization.

Callback URL:


This issue has been corrected in K2 Cloud Update 3, the token is not authorized and the registration is giving the end user the authorization URL.

Please note that Full HostServer logging will need to be enabled to expose the full URL.

Workaround 1 (Construct your URL by replacing the parameters values):

- Redirect_url

- Client_id

- PrimaryCredentialID

- Resource ID

Workaround 2

By trying the below URL and allowing the App to configure the Salesforce "Feature" you will be successfully authenticated.

Execute the  Callback URL:

Salesforce documentation on the OAuth flow and the usage of the "Authorize" endpoint: