I am connecting two salesforce orgs with connected app, named credential and Auth Provider.

  1. I have created connected app in target sandbox.
  2. Created Auth Provider in source org by providing Consumer and secret key from above connected App.
  3. Updated connected app callback URL with the call back url from Auth provider.
  4. Created named credential from above Auth provider.

When trying to authorise I am getting following error "error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration". Can some one help me understand what I am doing wrong.

  • What token and auth URL are you providing in the Auth Provider? Can you also grab the query parameter that contains the redirect_uri and see if it is the same as what you provided? May 26 '18 at 5:55

I had the same problem. I found that callback url in the connected app should be the same as you have in your redirect_uri. I tested it with a tool called postman, maybe that can help you as well.

  • Love you more than ever...!!!! you are the best!!!!
    – Robert
    Nov 5 '20 at 16:46
  • You are very welcome :) Nov 10 '20 at 9:32
  • @ChristianJuul - i exactly followed what rohan posted above , but getting same error ..where is the redirect uri ? for me to update ? Jan 17 at 4:21
  • @user2945545 I looked for this too, but eventually found it: if you click the Auth Provider record, you'll find the Redirect URI there :) Mar 6 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.