Authorizing Dev hub from Force.com IDE2 redirects to Localhost after Authorizing Dev Hub Org

I am setting up SF-DX using trial Dev Hub enabled Org and completed below steps:

  1. Set up Force.com IDE2 and Salesforce CLI.
  2. Added SFDX project.

But when i am trying to Authorize my Dev Hub, it authorizes SF org credentials and then redirects to http://localhost:1717/OauthRedirect?code=xxxx&state=xxx

I googled and found that we need to add connected app so i have also:

  1. Added connected app with callback URL http://localhost:1717/

I am not able to understand how this URL will be resolved as, what do I need to to resolve this URL or am I missing on some set up steps.

I am using Windows 7.

Thanks

Answer

You don’t “need” the Connected App ordinarily, as it usually uses the Global Connected App that Salesforce uses by default. If you’re having problems, all the usual software needs to be checked. Your firewall should allow access to localhost:1717, your computer should have a free port at 1717 (meaning, only one copy of the command line should be running at once), you should update your command line to the latest version via sfdx update, or as a final resort, try reinstalling the command line. You might also need the assistance of IT if your firewall, antivirus, or some other configuration is blocking access to localhost.

Attribution
Source : Link , Question Author : sfdeveloper , Answer Author : sfdcfox

Leave a Comment