> ## 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.

# Stack Overflow OAuth 2.0 connector profile – StackOne setup guide

> Set up the OAuth 2.0 connector profile for Stack Overflow in StackOne. One-time admin setup required before your users can link Stack Overflow accounts via Hub.

## Register an OAuth application on Stack Apps

Register a free application on Stack Apps to obtain the OAuth client credentials\
and app key that StackOne uses to connect to the Stack Exchange API.

**1. Sign in to Stack Apps**

Sign in to your [Stack Exchange account](https://stackapps.com/users/login).

<ul>
  <li>Go to the [Stack Apps application registration page](https://stackapps.com/apps/oauth/register).</li>
</ul>

**2. Register an application**

On the **Your Apps** page, click **Register an application**.

![The Your Apps page with the Register an application button highlighted](https://mintcdn.com/stackone-60/k9y9OHe_wNLcgJtm/connectors/stackoverflow/images/oauth2-setup-register-application.png?fit=max\&auto=format\&n=k9y9OHe_wNLcgJtm\&q=85\&s=f48505616816702369926a01c64bea60)

**3. Enter the application details**

Complete the **Register your application** form.

<ul>
  <li>Application name: `StackOne Integration`</li>
  <li>Application description: `Integration with StackOne`</li>
  <li>Application URL: `https://www.stackone.com`</li>
</ul>

![The registration form with the Application name, Application description, and Application URL fields highlighted](https://mintcdn.com/stackone-60/Nbo36vGugLdmYuLd/connectors/stackoverflow/images/oauth2-setup-application-details.png?fit=max\&auto=format\&n=Nbo36vGugLdmYuLd\&q=85\&s=d717b5d4aba243f915a316ead12b02ee)

**4. Accept the terms and register**

Select **I agree to the terms and conditions**, then click **Register application**.

![The registration form with the terms checkbox and Register application button highlighted](https://mintcdn.com/stackone-60/Nbo36vGugLdmYuLd/connectors/stackoverflow/images/oauth2-setup-accept-terms.png?fit=max\&auto=format\&n=Nbo36vGugLdmYuLd\&q=85\&s=4dedf8639af9efa62acdf11a4a2ecfed)

## Enable OAuth and set the redirect domain

After registering, Stack Apps opens your app dashboard. Enable the OAuth flow that\
StackOne uses and authorize StackOne's redirect domain.

**1. Copy your Client ID and open OAuth settings**

In the **OAuth** section, copy the value shown under **Client ID** and paste it into\
the **Client ID** field in the StackOne Connector profile. Then click **Manage OAuth**.

![The OAuth section with the Client ID value and Manage OAuth button highlighted](https://mintcdn.com/stackone-60/Nbo36vGugLdmYuLd/connectors/stackoverflow/images/oauth2-setup-client-id.png?fit=max\&auto=format\&n=Nbo36vGugLdmYuLd\&q=85\&s=5ae1d298b6458c261ca5bdaad595bc17)

**2. Enable the Authorization Code flow and set the OAuth domain**

In the **Manage OAuth** dialog, under **Confidential client**, select **Authorization Code**.\
Enter the **OAuth domain**, then click **Save changes**.

<ul>
  <li>OAuth domain: `stackone.com`</li>
  <li>StackOne's redirect URL: `https://api.stackone.com/connect/oauth2/stackoverflow/callback`</li>
  <li>Subdomains of the OAuth domain are automatically allow listed, so `stackone.com` covers StackOne's redirect URL.</li>
</ul>

![The Manage OAuth dialog with the Authorization Code checkbox, OAuth domain field, and Save changes button highlighted](https://mintcdn.com/stackone-60/k9y9OHe_wNLcgJtm/connectors/stackoverflow/images/oauth2-setup-manage-oauth.png?fit=max\&auto=format\&n=k9y9OHe_wNLcgJtm\&q=85\&s=587a396b0b85fca591cbaedc8c675ce2)

## Generate and copy your credentials

Generate the client secret and the app key, then paste all three values into the\
StackOne Connector profile.

**1. Generate a client secret**

In the **Client secrets** section, click **Generate new client secret**. Enter a\
**Credential name**, then click **Add**.

<ul>
  <li>Credential name: `StackOne`</li>
</ul>

![The Generate new OAuth client secret dialog with the Credential name field and Add button highlighted](https://mintcdn.com/stackone-60/k9y9OHe_wNLcgJtm/connectors/stackoverflow/images/oauth2-setup-generate-client-secret.png?fit=max\&auto=format\&n=k9y9OHe_wNLcgJtm\&q=85\&s=7729f0ef8d6ccf050ff02427d6a04883)

**2. Copy the client secret**

Copy the generated secret with the copy button and paste it into the **Client Secret**\
field in the StackOne Connector profile.

<ul>
  <li>The client secret is only displayed once and cannot be retrieved later.</li>
  <li>Store it securely for use later.</li>
</ul>

![The client secret confirmation dialog with the value hidden and the copy button highlighted](https://mintcdn.com/stackone-60/Nbo36vGugLdmYuLd/connectors/stackoverflow/images/oauth2-setup-client-secret.png?fit=max\&auto=format\&n=Nbo36vGugLdmYuLd\&q=85\&s=37f287b8606862d44849b108834928b0)

**3. Generate an app key**

In the **API keys** section, click **Generate new API Key**. Enter a **Name**, choose\
**Never** under **Expires in**, then click **Generate**.

<ul>
  <li>Name: `StackOne`</li>
</ul>

![The Generate new API key dialog with the Name field, Expires in dropdown, and Generate button highlighted](https://mintcdn.com/stackone-60/k9y9OHe_wNLcgJtm/connectors/stackoverflow/images/oauth2-setup-generate-api-key.png?fit=max\&auto=format\&n=k9y9OHe_wNLcgJtm\&q=85\&s=27edc2233a552c93d3566b16bf59ef65)

**4. Copy the app key**

Copy the generated key with the copy button and paste it into the **App Key** field\
in the StackOne Connector profile.

<ul>
  <li>The API key is only displayed once and cannot be retrieved later.</li>
  <li>Store it securely for use later.</li>
</ul>

![The API key confirmation dialog with the value hidden and the copy button highlighted](https://mintcdn.com/stackone-60/Nbo36vGugLdmYuLd/connectors/stackoverflow/images/oauth2-setup-api-key.png?fit=max\&auto=format\&n=Nbo36vGugLdmYuLd\&q=85\&s=be9d91c33b5f365e43fef0ebe5ed0177)

## Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for **Stack Overflow**:

**1. Open the connector**

Log in to StackOne, open [Connectors](https://app.stackone.com/connectors), and select **Stack Overflow**.

**2. Choose actions and events**

<ul>
  <li>Click **Add Profile**.</li>
  <li>If the connector offers more than one authentication method, set the **Auth Method** filter to **OAuth 2.0**.</li>
  <li>Select the actions, and any events, to enable for this Connector Profile.</li>
  <li>Click **Continue**.</li>
</ul>

**3. Set up authentication**

<ul>
  <li>Select **Authentication Type** as **OAuth 2.0**.</li>

  <li>
    Fill out the fields using details retrieved from your provider:

    <ul>
      <li>**Client ID**</li>
      <li>**Client Secret**</li>
      <li>**App Key**</li>
    </ul>
  </li>

  <li>Click **Create Profile**.</li>
</ul>

Congratulations! The new Connector Profile now shows up on the connector page. If you created it as a project member rather than an admin, it starts disabled until a project admin enables it. You can now continue to [Link Accounts](/connect/managing-connectors/linking-accounts) for **Stack Overflow**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.