Skip to main content
Question

OAuth Generate Temp Auth code

  • July 28, 2026
  • 1 reply
  • 33 views

Forum|alt.badge.img

Hi ​@TCarpenter   ​@KimmyK @JohnSantos ,
I have been facing an issue where there are two connectors created by me.
For one the environment columns is Production and the other as Development
However, I am unable to differentiate when to use https://account.docusign.com/oauth/auth and when to use https://account-d.docusign.com/oauth/auth

The same request for a connector in Production works with account-d but with https://account.docusign.com/oauth/auth 
It gives an error

“Something went wrong

The redirect URI is not registered properly with Docusign”
But the same redirect uri works with account-d and same clientId, scope, redirectUrl combination

Also, I have been facing another issue where getting a response 
errorcode: 400 BAD_REQUEST, message: <400,{"error":"invalid_grant","error_description":"unauthorized_client"}

Although this connector is also in the Environment “Production” with the same configuration as the earlier Production Connector mentioned above.

Thanks for the help.

1 reply

Cassandra.Grey
Docusign Employee
Forum|alt.badge.img+4

Hi npaul, for the auth endpoints, use the prod version with apps in prod. When testing your app in demo, use the demo auth endpoints. These are two separate environments with no data overlap between them, so the client app, settings, users, accounts, envelopes, etc. that are being tested are all specific to demo or prod.

Regarding your other errors, particularly the redirect URI, ensure that you have duplicated the OAuth settings you used to build the app in demo into your prod account. When you Go-Live, a new production version of your integration key (with the same value) is created and associated with your production account; the values you defined for that account are not copied and must be configured for that account as well. See After Go-Live for details.

Thanks,

Cassandra