# Configuring authentication values for Confluence

Last updated 5 days ago

Learn how to set up a self-managed Confluence OAuth application in the WRITER web app to enable a data sync with Knowledge Graph, learn more [here](https://support.writer.com/articles/2322721482-setting-up-oauth-app-permissions).

**NOTE:** You'll need the ability to create and manage OAuth applications in Confluence in order to set up this application.

## Create your OAuth app in Confluence

Start by logging into the Atlassian **Developer console**.

Under _My apps_ select **Create** then select **OAuth 2.0 integration**.

Give your new OAuth app a **name** and **check the box** agreeing to Atlassian's developer terms.

## Configure scopes for your new OAuth app

Once you've created your new OAuth app, you'll be taken to a details screen. Select **Permissions**.

Next to _Confluence API_ select **Add**, then **Configure**.

Select the **Classic scopes** tab, then select **Edit**. Add the following scopes:

|     |     |
| --- | --- |
| **Scope name** | **Code** |
| Search Confluence content and space summaries | search:confluence |

Next, select the **Granular scopes** tab, then select **Edit**. Add the following scopes:

|     |     |
| --- | --- |
| **Scope name** | **Code** |
| View space details | read:space:confluence |
| View pages | read:page:confluence |

Return to the details page for your app.

Select **Authorization**.

Next to _OAuth 2.0_ select **Add**.

Under _Callback URL_ enter the following URL:

```plaintext
https://app.writer.com/connector/confluence
```

Select **Save changes**.

Return to your app and select **App details**.

You'll now see the authentication details needed to create your self-managed OAuth app within WRITER.

## Configure your self-managed OAuth app in WRITER

Begin [creating an OAuth app in the](https://support.writer.com/article/251-setting-up-knowledge-graph-data-connectors#Setting-up-OAuth-app-permissions-g1eUX) [WRITER](https://support.writer.com/article/251-setting-up-knowledge-graph-data-connectors) [web app](https://support.writer.com/article/251-setting-up-knowledge-graph-data-connectors#Setting-up-OAuth-app-permissions-g1eUX).

You'll need to fill in the OAuth application values for this popup below.

For **Application name**, you can use whichever you prefer. This application name will appear on the Knowledge Graph setup page as team admins set up graphs for their teams.

Fill in **Client ID** and **Client secret** with the information you just created in the App details page within Confluence.
