mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
fix Slack MCP OAuth: v2 endpoint, user_scope param, nested token extraction
This commit is contained in:
parent
970f62278b
commit
dde1948a5c
2 changed files with 26 additions and 10 deletions
|
|
@ -21,6 +21,9 @@ class MCPServiceConfig:
|
|||
client_id_env: str | None = None
|
||||
client_secret_env: str | None = None
|
||||
scopes: list[str] = field(default_factory=list)
|
||||
scope_param: str = "scope"
|
||||
auth_endpoint_override: str | None = None
|
||||
token_endpoint_override: str | None = None
|
||||
|
||||
|
||||
MCP_SERVICES: dict[str, MCPServiceConfig] = {
|
||||
|
|
@ -46,6 +49,9 @@ MCP_SERVICES: dict[str, MCPServiceConfig] = {
|
|||
supports_dcr=False,
|
||||
client_id_env="SLACK_CLIENT_ID",
|
||||
client_secret_env="SLACK_CLIENT_SECRET",
|
||||
scope_param="user_scope",
|
||||
auth_endpoint_override="https://slack.com/oauth/v2/authorize",
|
||||
token_endpoint_override="https://slack.com/api/oauth.v2.access",
|
||||
scopes=[
|
||||
"search:read.public", "search:read.private", "search:read.mpim",
|
||||
"search:read.im", "search:read.files", "search:read.users",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue