...
Connected Application:
Open Authorization Provider
Setup > Identity > Auth. Providers > Open ‘ClosePlan Metadata Auth Provider’ provider
In a new window open Connected App
Setup > Apps > App Manager > Edit ‘ClosePlan Connected App’
Check that Callback URL field in the Connected App has the same value as in Auth. Provider
Replace with value from Auth. Provider if needed, Save and Continue
Authorization Provider:
Open Connected App
Setup > Apps > App Manager > Open ‘ClosePlan Connected App’
In a new window open Authorization Provider
Setup > Identity > Auth. Providers > Edit ‘ClosePlan Metadata Auth Provider’ provider
Check that Consumer Key field and Consumer Secret field value is the same as in the Connected App
Replace with values from the Connected App if needed and Save
Named Credentials:
Open My Domain page
Setup > Company Settings > My Domain
Open Named Credentials
Setup > Security > Named Credentials > Edit ‘ClosePlan Metadata Service’
Disable Start Authentication Flow on Save
Make sure that URL field value is the same as value next to ‘Your domain name is:’ in My Domain page and Save.
Re-Authenticate Credentials
If any correction made, open Named Credentials.
Setup > Security > Named Credentials > Edit ‘ClosePlan Metadata Service’
Make sure Start Authentication Flow on Save is checked
Hit Save to start auth. process
Note that it might take while a few minutes until all settings are propagated. If so, you You will be redirected to login screen instead of blank page. If you are not directed to a log in screen, wait few minutes and repeat.
Log in with the associated Username for the Sandbox Org