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

# Connect Bitwarden with OAuth 2.0 - Client Credentials – StackOne Hub

> Link a Bitwarden account in the StackOne Hub using OAuth 2.0 - Client Credentials. End-user guide to authorize the integration and start using Bitwarden actions.

<Warning>Public API access is available only to Bitwarden Teams and Enterprise organizations. You must be a Bitwarden organization Owner to view or rotate the organization API key.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Choose your region</h2>

  <p>Bitwarden offers hosted servers in two regions and supports self-hosted deployments. Enter the <strong>API Base URL</strong> and <strong>Identity Base URL</strong> fields with the values that match the region where your organization lives — both must point to the same region.</p>

  <ul>
    <li><strong>United States</strong> — API: `https://api.bitwarden.com`, Identity: `https://identity.bitwarden.com`</li>
    <li><strong>European Union</strong> — API: `https://api.bitwarden.eu`, Identity: `https://identity.bitwarden.eu`</li>
    <li><strong>Self-hosted</strong> — API: `https://<your-host>/api`, Identity: `https://<your-host>/identity`</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Retrieve the organization API key</h2>

  <p>Sign in to the Bitwarden web vault as an Owner of the organization and copy the API key.</p>

  <Steps>
    <Step title="Open the Admin Console">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://vault.bitwarden.com" target="_blank" rel="noopener noreferrer">Bitwarden web vault</a> (or the EU / self-hosted equivalent) and switch from <strong>Password Manager</strong> to <strong>Admin Console</strong> using the product switcher in the top navigation.</p>
      </div>
    </Step>

    <Step title="Open Organization info">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In the left sidebar choose <strong>Settings</strong> > <strong>Organization info</strong>.</p>
      </div>
    </Step>

    <Step title="View the API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Scroll to the <strong>API key</strong> section at the bottom of the page and click <strong>View API key</strong>. Confirm your master password if prompted.</p>

        <ul>
          <li>Copy the <strong>client\_id</strong> value (it has the form `organization.<org-uuid>`).</li>
          <li>Copy the <strong>client\_secret</strong> value. Treat it as a password.</li>
          <li>If the API key was leaked, click <strong>Rotate API key</strong> to invalidate the old credentials and generate new ones.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>API Base URL</strong></li>
        <li><strong>Identity Base URL</strong></li>
        <li><strong>Client ID</strong></li>
        <li><strong>Client Secret</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
