Skip to main content

OAuth callback

Endpoint

/i/crashes-jira?method=callback

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Completes OAuth flow by exchanging request token and verifier for an access token.

Authentication

  • No dashboard authentication is validated in this callback handler.
  • Route is expected to be invoked by JIRA OAuth callback.

Permissions

  • No feature permission check is applied.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be callback
oauth_verifierStringYesOAuth verifier returned by JIRA
pretty_callbackStringNoIf present, redirects to /crashes-jira/login_callback page

Configuration Impact

SettingDefaultAffectsUser-visible impact
crashes-jira.*Crashes Jira integration defaultsJira integration logic and synchronization behavior.Changes to Jira integration settings can alter authentication, sync behavior, and returned integration state.

Response

Success Response

Standard callback success:

{
"result": "Success"
}

Pretty callback success:

{
"result": "Redirect to /crashes-jira/login_callback"
}

Response Fields

FieldTypeDescription
resultStringCallback result summary (actual response may be redirect)

Error Responses

HTTP StatusResponse
302Redirect to /i/crashes-jira/login when stored request token is older than 10 minutes
500{ "result": "Failed to generate oauth object: ..." }
500{ "result": "Failed to find oauth token: ..." }
500{ "result": "Failed to retrieve access token: ..." }

Behavior/Processing

  1. Loads temporary OAuth token from countly.crashes_jira (_id: "meta").
  2. Checks token age (10-minute timeout).
  3. Exchanges verifier for access token and stores oauth.access_token.
  4. Returns success response or UI redirect when pretty_callback is used.

Database Collections

CollectionUsed forData touched by this endpoint
countly.crashes_jiraEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.

Examples

Example 1: OAuth callback from JIRA

/i/crashes-jira?method=callback&oauth_verifier=OAUTH_VERIFIER_VALUE

Example 2: OAuth callback with UI redirect

/i/crashes-jira?method=callback&oauth_verifier=OAUTH_VERIFIER_VALUE&pretty_callback=yes

Ⓔ Enterprise

This feature is part of Countly Enterprise.

Get Access:

Already a Customer? Use support portal if you have any questions


Last Updated

2026-02-16