﻿---
title: stack kb connectors get-actions-connector-oauth-callback cli command
description: Handle OAuth callback Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/connectors/get-actions-connector-oauth-callback
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb connectors get-actions-connector-oauth-callback cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb connectors get-actions-connector-oauth-callback [options]
```

Handle OAuth callback
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--code string">
    The authorization code returned by the OAuth provider.
  </definition>
  <definition term="--state string">
    The state parameter for CSRF protection.
  </definition>
  <definition term="--error string">
    Error code if the authorization failed.
  </definition>
  <definition term="--error-description string">
    Human-readable error description.
  </definition>
  <definition term="--session-state string">
    Session state from the OAuth provider (e.g., Microsoft).
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>