HarshitH
ZITADEL•6mo ago•
6 replies
Harshit

Issue with Bitbucket OAuth Integration in ZITADEL

Hi ZITADEL Team,

I'm facing an issue while trying to integrate Bitbucket as an OAuth provider within ZITADEL.

šŸ”§ Setup Details:-
-OAuth Provider: Bitbucket (Cloud)
-OAuth Type: Generic OAuth / External IDP
-Redirect URI: Configured correctly as per Bitbucket and ZITADEL guidelines
-Client ID/Secret: Verified from Bitbucket.

After configuring Bitbucket as an external IDP in ZITADEL and initiating the OAuth flow:

The authorization request is sent successfully to Bitbucket.

Upon granting permission, Bitbucket redirects back to the callback URL with a valid authorization code.

However, the token exchange request fails, and no user is created or logged in via Bitbucket.

Observed Behavior:-
-ZITADEL does not complete the login flow.
-The logs (if any) are unclear or insufficient to debug.
-A 401 or token-related error occurs when trying to redeem the authorization code.
image.png
Was this page helpful?