openid_connect_token
Exchange an OAuth authorization code or refresh token for a Slack user access token, enabling authentication via Sign in with Slack.
Instructions
Exchange a temporary OAuth code for an access token for Sign in with Slack.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_id": "<client_id>",
"client_secret": "<client_secret>"
},
"name": "openid_connect_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The temporary authorization code returned via the OAuth redirect. | |
| client_id | Yes | Issued client ID for your Slack app. | |
| grant_type | No | The grant type: ``authorization_code`` (default) or ``refresh_token``. | |
| redirect_uri | No | Redirect URI used in the initial authorization request; must match exactly. | |
| client_secret | Yes | Issued client secret for your Slack app. | |
| code_verifier | No | The PKCE code verifier, when the authorization request used PKCE. | |
| refresh_token | No | The refresh token, used when ``grant_type`` is ``refresh_token``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||