+ Start a Discussion
alithom123alithom123 

API access to Managed Package from Multiple Hosts

I have a managed package and that I can access successfully (through api) from my host  'host1.com' but when I try to access it from my development host 'host2.com' I get the error message:

 

Call to token URL https://login.salesforce.com/services/oauth2/token failed with status 400, response {"error":"invalid_grant","error_description":"expired access/refresh token"

 

I believe my access and refresh tokens are correct as I have copied them over from the working host 'host1.com'.  Can I only access a package from one host?  or am I doing something else wrong?  I have remote access set up for both hosts so that they each have their own consumer key and consumer secret.  

ryanjuptonryanjupton

I believe you will need a separate token since the other host has a different key and secret.

ryanjuptonryanjupton

You may also want to post to the security group.