I am connecting two salesforce orgs with connected app, named credential and Auth Provider.
- I have created connected app in target sandbox.
- Created Auth Provider in source org by providing Consumer and secret key from above connected App.
- Updated connected app callback URL with the call back url from Auth provider.
- 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.