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

# Pydantic Logfire OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for Pydantic Logfire in StackOne to allow users to link their accounts.

> [!WARNING]
>
> Registering an OAuth app requires organization admin access in Logfire.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Register an OAuth app

A Logfire OAuth app works only in the data region where you register it, so register it in the region your organization uses.

**1. Start a new OAuth app**

Sign in to the [Logfire EU console](https://logfire-eu.pydantic.dev), or the [Logfire US console](https://logfire-us.pydantic.dev) for the US region. On the **Organization overview** page, click **Security & access** in the sidebar.

<ul>
  <li>Click the **OAuth apps** tab.</li>
  <li>Click **New OAuth app**.</li>
</ul>

![Logfire organization Security & access page with the sidebar link and the OAuth apps tab highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/oauth2-setup-oauth-apps-tab.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=522cd8391b236b3568e004960f997e9b)

**2. Create the app**

Fill in the **New OAuth application** form.

<ul>
  <li>**Application Name**: `StackOne Integration`</li>
  <li>**Application Type**: **Confidential**</li>
  <li>**Redirect URIs**: the **Callback URL** from your Connector Profile</li>
</ul>

![New OAuth application form with the Application Name, Confidential type, Redirect URIs and Allowed Scopes fields highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/oauth2-setup-new-oauth-application.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=d2f9484a8410667b65a7665788cf295f)

**3. Add the scopes and create the app**

Enables actions: Create Alert, Create Channel, Create Dashboard, Create Organization Invitation, Create Project, Create Project Write Token, Create Schedule, Create Variable, Create Variable Type, Delete Alert, Delete Channel, Delete Current Organization, Delete Dashboard, Delete Project Write Token, Delete Schedule, Delete Variable, Expire Project Write Token, Get Alert, Get Channel, Get Current Organization, Get Dashboard, Get Project Info, Get Schedule, Get Variable By Name, Get Variable Type By Name, Get Variables Config, List Alerts, List Channels, List Dashboards, List Organization Invitations, List Project Write Tokens, List Projects, List Variable Types, Rotate Project Write Token, Update Alert, Update Channel, Update Current Organization, Update Dashboard, Update Project, Update Schedule, Update Variable

On the same form, open **Allowed Scopes**.

<ul>
  <li>Select every scope listed.</li>
  <li>Click **Create OAuth Application**.</li>
</ul>

![Allowed Scopes list open on the New OAuth application form with the selected scopes ticked](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/oauth2-setup-allowed-scopes.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=8cc38311969f0fb6e3a5390bdf441445)

<ul>
  <li>
    organization:read
  </li>

  <li>
    organization:write
  </li>

  <li>
    organization:create\_project
  </li>

  <li>
    organization:read\_channel
  </li>

  <li>
    organization:write\_channel
  </li>

  <li>
    organization:read\_invitation
  </li>

  <li>
    organization:write\_invitation
  </li>

  <li>
    project:read
  </li>

  <li>
    project:write
  </li>

  <li>
    project:write\_token
  </li>

  <li>
    project:read\_alert
  </li>

  <li>
    project:write\_alert
  </li>

  <li>
    project:read\_dashboard
  </li>

  <li>
    project:write\_dashboard
  </li>

  <li>
    project:read\_variables
  </li>

  <li>
    project:write\_variables
  </li>
</ul>

**4. Copy the credentials**

Copy the **Client ID** and **Client Secret** into your Connector Profile.

<ul>
  <li>The Client Secret is shown only once and cannot be retrieved later.</li>
  <li>Set **Data Region** in your Connector Profile to the region where you registered the app.</li>
</ul>

![OAuth Application Created page with the Client ID and Client Secret values hidden and their copy buttons highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/oauth2-setup-copy-credentials.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=3c1b5fd3d51ae9299ef689ea7ecbd18c)

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/logfire/guides/link-account/oauth-2-0.md).


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