I get the same error when I try to make a call to get the access token
Error:
{
"errorCode": "PARTNER_AUTHENTICATION_FAILED",
"message": "The specified Integrator Key was not found or is disabled. An Integrator key was not specified."
}
Below is the method I call to get the access token
public String getAccessToken(){
List scopes = new ArrayList();
scopes.add("signature");
scopes.add("impersonation");
//the Key from the privateKey.txt needs to be replaced with the appropriate demo account, currently it has production key
File privateKeyFile = new File("privateKey.txt");
FileInputStream fin;
byte privateKeyFileContent[] = null;
OAuth.OAuthToken oAuthToken;
try {
// create FileInputStream object
fin = new FileInputStream(privateKeyFile);
privateKeyFileContent = new byte[(int)privateKeyFile.length()];
// Reads up to certain bytes of data from this input stream into an array of bytes.
fin.read(privateKeyFileContent);
} catch (IOException e) {
e.printStackTrace();
}
ApiClient apiClient = new ApiClient();
//the below URL needs to be changed to account.docusign.com for production authentication
apiClient.setOAuthBasePath("account-d.docusign.com");
try {
oAuthToken = apiClient.requestJWTUserToken(
dcsIntegratorKey,
dcsUserName,
scopes,
privateKeyFileContent,
TOKEN_EXPIRATION_IN_SECONDS);
accessToken = oAuthToken.getAccessToken();
} catch (ApiException e) {
e.printStackTrace();
}
catch (IOException e) {
e.printStackTrace();
}
return accessToken;
}
dcsIntegratorKey = Integration key
dcsUserName = User Id value for the user I am impersonating.
Any thoughts on what could be the issue or how to debug this?
Hello,
I get the same error when I try to make a call to get the access token
Error: { "errorCode": "PARTNER_AUTHENTICATION_FAILED", "message": "The specified Integrator Key was not found or is disabled. An Integrator key was not specified." } Below is the method I call to get the access token public String getAccessToken(){ List scopes = new ArrayList(); scopes.add("signature"); scopes.add("impersonation"); //the Key from the privateKey.txt needs to be replaced with the appropriate demo account, currently it has production key File privateKeyFile = new File("privateKey.txt"); FileInputStream fin; byte privateKeyFileContent[] = null; OAuth.OAuthToken oAuthToken; try { // create FileInputStream object fin = new FileInputStream(privateKeyFile); privateKeyFileContent = new byte[(int)privateKeyFile.length()];
} dcsIntegratorKey = Integration key dcsUserName = User Id value for the user I am impersonating.
Any thoughts on what could be the issue or how to debug this?
Thanks