> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket

> Set up Bitbucket OAuth for Consumer Authentication.

## Setup

*Follow these steps if you have not created a Bitbucket OAuth client yet.*

1. Navigate to [Bitbucket Workspace Applications](https://bitbucket.org/account/apps). For more information, check out Bitbucket's **Creating an OAuth App** guide [here](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/).
2. Click **OAuth consumers** under **Apps and features** on the left navigation.
3. Click **Add consumer** with your application name.
4. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Callback URL**.
5. Select at least Account **Email** and **Read** permissions.

***

*Follow these steps if you already have an existing Bitbucket OAuth client.*

1. Navigate to [Bitbucket Workspace Applications](https://bitbucket.org/account/apps).
2. On the application you'd like to use click the three dots on the right-hand side and press edit.
3. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Callback URL**.
