GitHub Login Failing with "Unauthorized Domain", but works in incognito

  • ALM used: GitHub
  • CI system used: GitHub Actions
  • Error observed: Recently only, members of our organization started experiencing random “unauthorized domain” errors while logging into SonarCloud using GitHub.
    • This appears to have something to do with a GH App named “SonarCloud US” instead of a previously used app “SonarCloud”. The US one doesn’t appear in the marketplace, so it cannot be installed on the organization.
    • Clearing cookies sometimes helps, but others it does not.
  • Steps to reproduce: Click from an analysis in GitHub, click “Login with GitHub”.
  • Potential workaround: Using an incognito browser works.

Hi,

Welcome to the community and thanks for this report!

We’ve operated a US-hosted instance for a while, but recently merged the login pages. At a guess, the folks who are getting this error are physically based in the U.S. so they’re being defaulted to the U.S. instance. They just need to choose the EU instance once, and that should be sticky for them.

 
HTH,
Ann

That definitely 100% solved the issue. Appreciate the help, Ann.