BlameTrail
IntegrationsSentry

OAuth Integration Setup

Connect multiple Sentry organizations to BlameTrail using the OAuth integration with automatic token refresh.

The OAuth integration mode is designed for teams that prefer OAuth-based authentication. Users authorize via an OAuth flow, and BlameTrail manages token refresh automatically. Multiple organizations can connect their own Sentry organizations independently.

Prerequisites

  • A Sentry account with permissions to authorize integrations
  • A BlameTrail organization with admin access

Step 1: Connect via OAuth

  1. In BlameTrail, navigate to Organization > Integrations.
  2. In the Sentry section, click Connect via OAuth.
  3. BlameTrail redirects to Sentry's authorization page.
  4. Select which Sentry organization to connect and click Authorize.
  5. Sentry redirects back to BlameTrail with an authorization code.
  6. BlameTrail exchanges the code for an access token and refresh token.

The integration status changes to Connected and displays the connected Sentry organization.

Step 2: Set up project mappings

After connecting, map Sentry projects to BlameTrail services so webhooks create incidents on the correct service. See Project Mappings.

Token refresh

OAuth tokens issued by Sentry expire periodically. BlameTrail handles this automatically:

  • A background job monitors token expiration and refreshes tokens before they expire.
  • If a refresh fails, BlameTrail retries with exponential backoff.
  • If repeated refresh attempts fail, the integration status changes to Disconnected and an admin must reconnect via OAuth.

No manual intervention is required under normal operation.

Differences from internal integration

FeatureInternalOAuth (Public)
Setup complexityLowerHigher (requires Sentry authorization flow)
Token managementManual, does not expireAutomatic refresh
Multi-org supportSingle org per integrationMultiple orgs can connect independently

Troubleshooting

ProblemCauseSolution
OAuth redirect failsBrowser or network issueTry again, ensure pop-ups are not blocked
Token refresh fails repeatedlySentry integration was removed or permissions changedReconnect via Organization > Integrations > Sentry > Reconnect
Integration shows disconnectedToken refresh failed permanentlyUser must reconnect via Organization > Integrations > Sentry > Reconnect

On this page