0

I have a managed app in a Dev Org. Now I want to connect it to my main Org. I followed the instructions described in the posting "Can we connect dev org with Environment Hub?". I went to the Environment Hub and selected Connect Org, then I enter the system administrator username on the Dev Org. The window that popups up shows the following message. The message refers to a redirect_uri which is mismatched, however, I don't know what I am supposed to set or where to set it.

error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration

3
  • 1
    The callback URL in the connected app should be the same as you have in your redirect_uri. Try changing the 'Callback URL' to something like swekotest-dev-ed.my.salesforce.com/environmenthub/…. click-path in the Environment Hub: Setup | Apps | App Manager | choose 'Environment Hub' Connected Apps Commented Feb 9, 2022 at 12:00
  • 1
    Okay, I found where to set the callback URL and was able to get it working. Thank you. Commented Feb 9, 2022 at 16:10
  • Thanks for confirming. I'll post this info as an answer so others can find it helpful too. Commented Feb 9, 2022 at 16:13

1 Answer 1

1

The callback URL in the connected app should be the same as you have in your redirect_uri.

You need to set the 'Callback URL' to something like to https://swekotest-dev-ed.my.salesforce.com/environmenthub/callback.apexp

Click-path in the Environment Hub(LEX): Setup | Apps | App Manager | choose 'Environment Hub' in Connected Apps to set callback URL

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .