Azure DevOps Widget Failing after connecting to Entra

Hi,

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:
widget-showing-log-in-button
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:
login-popup-window-showing-405-error

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.

Are you able to help us resolve this matter?

Thanks in advance!

1 Like

Hello @eric41,

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.

Cheers,
Sarath

2 Likes

Template for a good new topic, formatted with Markdown:

  • ALM used (Azure DevOps)
  • CI system used (Azure DevOps)
  • Languages of the repository (GIT)
    I tried to use Code Quality Dashboard Widget, however when tried to login using my AD account credentials it failed.

We are having the same issue here, all of our widgets are broken and when I try to authenticate I get the same HTTP 405 error

1 Like

Hello,
Any update about this issue, is it fixed now, any advice please?

Hey all.

We’re still investigating the issue and possible fixes. Thanks for your patience.

Hi all,

A fix has been deployed and validated, can you please confirm this issue is resolved on your side?
Thank you for your patience during this past week.

1 Like

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 :slight_smile:
image

Thanks for resolving the issue!

1 Like

Ditto for me, log in is working again :slight_smile: but I also have the height issue (but this is very minor)

1 Like

Thank you for this feedback.
Have a nice end of week. :slight_smile: