Since we migrated our Azure DevOps to connect with Entra, the dashboard widgets no longer work. The Entra migration did change all our users’ identities to their new main email address defined in Entra. I’ve deleted all old users from the SonarCloud organization and added everyone again. Generated a new SonarCloud token, a new Azure DevOps PAT, et cetera. Everything else now works fine, everyone has access, but we can’t get the widgets to show data.
The dashboard widget only shows the Login button for all of us:
Logging in seems to work (if we visit sonarcloud.io afterwards, we are logged in), but the widget still does not load. Trying to log in again after that even throws a HTTP 405:
I’ve tried different browsers, incognito, logging in via sonarcloud.io first, etc, all no luck unfortunately.
Inspecting network traffic shows that the widget tries to load https://sonarcloud.io/api/users/current to determine whether the user is logged in. The JWT-SESSION cookie is not sent along with this request, so it returns {.., isLoggedIn:false, ..}. Manually opening this same endpoint in my browser shows my identity (the one from Entra through Azure DevOps auth) just fine, because the JWT-SESSION cookie (SameSite: Lax) is sent along during that request.
Welcome to the community. We recently had a fix to change the way users are authenticated to SonarCloud. This seems to be related to this and looks like a bug. Thanks for reporting this. I will try to re-prioritize this and fix it ASAP.
Logging in via the widget now works again for me and it shows data just fine. Albeit not at 100% widget height, but most important is that we can see our quality gates