# Bitbucket deployment fails with error 403

**URL:** <https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243>\
**Category:** Get Help\
**Tags:** bitbucket-extension\
**Created:** [May 19, 2020, 9:12am UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243 "2020-05-19T09:12:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrstnkl](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chrstnkl](https://community.auth0.com/u/chrstnkl)\
**Post date:** [May 19, 2020, 9:12am UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/1 "2020-05-19T09:12:08Z")

</div>

Hey,

we are using the Bitbucket Deployments extension for some time now to synchronise our custom login page for example. This was working pretty fine for the last couple of month. However, recently this stopped and every time the Webhook is triggered or we try to deploy it manually, the deployment fails with the status code 403 (“Request failed with status code 403”). This happens to all our tenants (we have three different ones), all of the sudden they stopped working without any changes from our side (at least of changes we know of).

There is no further information what exactly went wrong. We already tried to remove and re-install the Bitbucket Deployment extension but the error remains. Also the request logs in the Bitbucket Webhook doesn’t show any additional information. The Bitbucket user credentials are also correct, if we provide wrong credentials we receive a 401 error (Unauthorized).

Without any further information it is somehow difficult to really hard to get to the bottom of this error. Is there something wrong with the connection between Auth0 and Bitbucket or something else we could try?

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [May 19, 2020, 2:07pm UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/2 "2020-05-19T14:07:25Z")

</div>

Hello!

HTTP status 403 is “unauthorized” - your credentials are valid for connecting to Bitbucket, but you don’t have that type of access to that repo.

Are you certain you have access to that repo? Are you using your regular credentials or an app password? Have you tried generating a new app password?

---

<div class="post-metadata">

**Author:** ![chrstnkl](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chrstnkl](https://community.auth0.com/u/chrstnkl)\
**Post date:** [May 19, 2020, 3:11pm UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/3 "2020-05-19T15:11:15Z")

</div>

Thanks for your reply! We at least figured out why this is happening now. Our administrators activated SSO for Bitbucket and so we can’t use a simple user name / password combination anymore in order to log in. Is it somehow possible to enable an Oauth login flow for the Bitbucket Deployment extension?

---

<div class="post-metadata">

**Author:** ![chrstnkl](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chrstnkl](https://community.auth0.com/u/chrstnkl)\
**Post date:** [May 20, 2020, 6:40am UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/4 "2020-05-20T06:40:46Z")

</div>

Ok we finally were able to get this working again but creating an app password for that user. Thanks for the suggestion using an app password!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 20, 2020, 11:06am UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/5 "2020-05-20T11:06:10Z")

</div>

Glad you have it working now!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 4, 2020, 11:06am UTC](https://community.auth0.com/t/bitbucket-deployment-fails-with-error-403/43243/6 "2020-06-04T11:06:14Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
