question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authorize an org runs indefinitely in browser

See original GitHub issue

Summary

Running “Authorize an org” does not work. After logging in the browser the page loads infinitely.

Steps To Reproduce:

  1. In VS Code Cmd: SFDX: “Authorize an org” or via cli “sfdx force:auth:web:login -r https://(customerurl)–dev1.my.salesforce.com”
  2. Firefox 83.0 opens and I log in
  3. Infinite loop

Expected result

Successful authorization

Actual result

Infinite loop

Additional information

I’ve checked with two orgs where I have never been authorized so far. I’ve also tried Chromium, same behaviour. It used to work.

SFDX CLI Version: sfdx-cli/7.82.1-0 linux-x64 node-v14.15.1

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core) @oclif/plugin-autocomplete 0.1.5 (core) @oclif/plugin-commands 1.3.0 (core) @oclif/plugin-help 3.2.0 (core) @oclif/plugin-not-found 1.2.4 (core) @oclif/plugin-plugins 1.9.4 (core) @oclif/plugin-update 1.3.10 (core) @oclif/plugin-warn-if-update-available 1.7.0 (core) @oclif/plugin-which 1.0.3 (core) @salesforce/sfdx-diff 0.0.6 @salesforce/sfdx-trust 3.6.0 (core) alias 1.1.3 (core) analytics 1.12.1 (core) auth 1.4.5 (core) config 1.2.1 (core) generator 1.1.3 (core) salesforcedx 50.7.1 (core) ├─ schema 1.0.2 (core) ├─ templates 50.1.0 (core) ├─ custom-metadata 1.0.10 (core) ├─ apex 0.1.4 (core) ├─ salesforce-alm 50.7.1 (core) └─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core) sfdx-cli 7.82.1-0 (core)

OS and version: Ubuntu 20.10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:31 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
renatoliveiracommented, Jan 26, 2021

My team and I got the same issue since friday 22 january. We are not able to perform an authorize of our org anymore. It keeps on looping on the localhost:1717. Tried an old version of sfdx-cli but still the same issue. Any idea how we can resolve this? we are not able to carry on our work.

For now you can use an alternative authorization flow with force:auth:device:login.

4reactions
mannykarycommented, Dec 16, 2020

I experienced the same issue on Linux Mint 20

$ sfdx-cli --version
sfdx-cli/7.82.1-0 linux-x64 node-v8.11.3

I was able to work around this issue by installing an older version (7.74.1).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authorize an Org runs forever after login - Trailhead - Salesforce
Found a workaround: Execute sfdx force:auth:device:login at a terminal. Execute SFDX: Set a Default Org at vscode and chose the org you logged...
Read more >
sfdx:Authorize an org taking too much time to respond
First, when you put "Authorize an org" make sure to put your credentials in the window that opens automatically, otherwise it will always ......
Read more >
Authorize an Org command is not working in VS Code
I was able to authorize an org first time. Then I tried to authorize another org but browser is not opening to authorize...
Read more >
draft-ietf-oauth-browser-based-apps-04
Introduction This specification describes the current best practices for implementing OAuth 2.0 authorization flows in applications running entirely in a ...
Read more >
Cache-Control - HTTP - MDN Web Docs
It is also called local cache or browser cache. ... Responses for requests with Authorization header fields must not be stored in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found