Third-party auth providers let you securely connect Knowledge Studio enrichment tasks to external platforms like GitHub, Microsoft SharePoint, and Atlassian Confluence. Complete the credential generation and auth provider configuration steps in this document as part of your prerequisite setup.
Before you begin
Before configuring external connectors, ensure that you have completed the following prerequisites:
- Review the overall enrichment configuration workflow in Configure prerequisites for enrichment tasks.
- Ensure you have the necessary administrator or developer permissions in your target third-party platforms (GitHub, Microsoft SharePoint, or Atlassian Confluence) to generate access tokens or register applications.
- To securely store credentials and attach them to tasks, ensure you have properly configured the Agent Identity service. For more information, see Set up IAM permissions for auth providers.
When connecting the enrichment agent to third-party knowledge sources, you must use the Google Cloud Agent Identity service. Agent Identity acts as an auth manager that securely stores your third-party credentials and provisions short-lived access tokens to the enrichment agent so that human operators never have to directly manage raw client secrets during task execution.
Configure GitHub
To connect Knowledge Studio to GitHub repositories, you must create a fine-grained Personal Access Token (PAT) in GitHub and store it in an API key auth provider.
- Sign in to GitHub, click your profile photo, and click Settings.
- Go to Developer settings > Personal access tokens > Fine-grained tokens.
- Click Generate new token.
- Configure the token properties:
- Token name: Enter a descriptive name (for example,
enrichment-agent). - Expiration: Set an appropriate expiration date.
- Resource owner: Select the organization or user account that owns the target repositories.
- Repository access: Select Only select repositories and choose the repositories you want to enrich.
- Permissions: Grant specific Read or Read and Write access for the required scopes (such as Issues, Pull Requests, and Contents).
- Token name: Enter a descriptive name (for example,
- Click Generate token and copy the token safely.
- Register an API key auth provider in Google Cloud and supply the PAT as the API key. See Authenticate using an API key with auth manager.
For more information about creating a PAT, see Managing your personal access tokens in the GitHub documentation.
Configure Microsoft SharePoint
If you are connecting to Microsoft SharePoint, obtain OAuth credentials from Microsoft Entra ID (formerly Azure Active Directory) using a 2-Legged OAuth flow.
- Register a new application in the Microsoft Entra admin center.
- Grant Microsoft Graph API permissions:
- Go to API permissions > Add a permission > Microsoft Graph > Application permissions (do not select Delegated permissions).
- Add the
Sites.Read.AllandFiles.Read.Allscopes. - Click Grant admin consent for your tenant so both Application permissions show as "Granted".
Create a new client secret. Record its value immediately, as it is only shown once. For more information, see Create a new client secret.
Copy your application configuration values. After registration, collect the following values for your auth provider configuration:
- Client ID: The Application (client) ID from your app overview.
- Token URL: While on the Overview page, click the Endpoints tab. Copy the URL labeled OAuth 2.0 token endpoint (v2).
Register a 2-legged OAuth auth provider in Google Cloud using these secrets. When creating the provider, supply the default scope to the
--allowed-scopesparameter:--allowed-scopes="https://graph.microsoft.com/.default"For more information, see Register an application with the Microsoft identity platform in the Microsoft Entra documentation.
Configure Atlassian Confluence
Because Confluence does not support 2-Legged OAuth for server-to-server agents, you must create a dedicated service account (or dummy user account) in Atlassian, grant it the required permissions, and generate a PAT.
- Sign in to the specific service account in Confluence.
- Click your Profile picture in the top-right corner of the screen.
- Select Settings (or Account settings) from the menu.
- In the Security tab, navigate to the API tokens section.
- Click the Create API token with scopes button. Don't use an unscoped token because it won't fetch all the required tools.
- Provide a descriptive name (for example,
enrichment-agent), configure the expiration date, and click Next. - In the Select the app list, select the Atlassian MCP option and click Next.
- Select all of the following Confluence read and search scopes:
read:page:confluenceread:space:confluencesearch:confluenceread:confluence-content.allread:confluence-content.summaryread:confluence-space.summarysearch:rovo:mcpread:jira-work
- Click Next, and then click Create.
- Copy the generated token.
- Format the credential string for the Google Cloud auth provider as
<ATLASSIAN_EMAIL>:<API_TOKEN>. Atlassian requires HTTP basic authentication encoding (email:api_token) to use the personal API tokens programmatically. - Register an API key auth provider in Google Cloud and supply the
<ATLASSIAN_EMAIL>:<API_TOKEN>string as the API key. See Authenticate using an API key with auth manager.
For more information about creating a PAT, see Manage API tokens for your Atlassian account in the Atlassian documentation.
What's next
- Learn how to create enrichment tasks.