function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
joshrjoshr 

Problems with OAuth

I'm having an issue with the OAuth Refresh Token flow. I submit my request to the na14 instance and I successfully get back a response with an access_token. However, the instance_url in the response is for na4. When I then submit a request to a custom REST endpoint on na14, I get back a 401 Not Authorized. If I submit the same request to na4, I get back a 404 (as I would expect since the REST resource isn't on na4 but it does show that the access token is valid for na4).

 

To recap, I'm submitting a refresh token in order to get an access token. The request is submitted to na14. The access token comes back, but it is tied to the na4 instance.

 

Has anybody encountered this issue before and if so, how was it solved?

 

Thanks,

Josh