Hello @Me Myself And I
Based on the behavior you've described, this looks more like an Azure DevOps ↔ Bitbucket Cloud integration/service-side issue than an incorrect OAuth consumer configuration.
Microsoft's current documentation still lists OAuth ("Grant authorization") and Basic Authentication as supported authentication methods for Bitbucket Cloud service connections. The expected flow is that Azure DevOps redirects to Bitbucket for authorization and then validates/saves the connection.
The key detail in your case is that Bitbucket successfully records the authorization, but Azure DevOps returns HTTP 500 when processing the callback/token exchange. You also mentioned that alternative authentication methods fail. That makes repeatedly recreating the OAuth consumer unlikely to resolve the underlying problem.
Other Azure DevOps users have also reported Bitbucket integration failures with both OAuth and API-token-based authentication, including cases where previously working integrations suddenly stopped.
Here are my suggestions:
- Check the Azure DevOps Services status page, including the history for your geography. Microsoft notes that Azure DevOps service problems can affect only particular regions or services.
- Try creating the Bitbucket service connection in another Azure DevOps project/organization, if available. This can help determine whether the problem is organization-specific.
- Capture the failed authorization request from the browser developer tools (Network) and record the timestamp, HTTP 500 response, Azure DevOps organization, project, and any correlation/activity ID returned.
- If the failure persists, raise it through the Azure DevOps support/Developer Community channel with those details. Microsoft specifically directs unreported Azure DevOps availability/service problems to its support channels.
Do not interpret the HTTP 500 as proof that the Bitbucket OAuth credentials are wrong. An invalid client, redirect URI, or authorization grant would normally produce an OAuth-related 4xx response. Here, Bitbucket accepts the authorization and Azure DevOps subsequently fails internally, which warrants investigation on the Azure DevOps side.
One other point: Azure DevOps' own OAuth framework is being deprecated in 2026, but that documentation concerns applications authenticating to Azure DevOps. It shouldn't automatically be assumed to explain the Bitbucket Cloud service connection failure, since Microsoft's current service-connection documentation still explicitly supports Bitbucket OAuth.
Sharing these references with you:
Service connections – Azure Pipelines
Azure DevOps Services status information
Related Bitbucket/Azure DevOps authentication reports
Help make this community better for everyone: if this answer resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution.