mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
revert scope_param, use standard scope for Slack v2_user endpoint
This commit is contained in:
parent
820326e3ee
commit
970f62278b
2 changed files with 2 additions and 4 deletions
|
|
@ -165,7 +165,7 @@ async def connect_mcp_service(
|
|||
"state": state,
|
||||
}
|
||||
if svc.scopes:
|
||||
auth_params[svc.scope_param] = " ".join(svc.scopes)
|
||||
auth_params["scope"] = " ".join(svc.scopes)
|
||||
|
||||
auth_url = f"{auth_endpoint}?{urlencode(auth_params)}"
|
||||
|
||||
|
|
@ -478,7 +478,7 @@ async def reauth_mcp_service(
|
|||
"state": state,
|
||||
}
|
||||
if svc.scopes:
|
||||
auth_params[svc.scope_param] = " ".join(svc.scopes)
|
||||
auth_params["scope"] = " ".join(svc.scopes)
|
||||
|
||||
auth_url = f"{auth_endpoint}?{urlencode(auth_params)}"
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ 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"
|
||||
|
||||
|
||||
MCP_SERVICES: dict[str, MCPServiceConfig] = {
|
||||
|
|
@ -47,7 +46,6 @@ MCP_SERVICES: dict[str, MCPServiceConfig] = {
|
|||
supports_dcr=False,
|
||||
client_id_env="SLACK_CLIENT_ID",
|
||||
client_secret_env="SLACK_CLIENT_SECRET",
|
||||
scope_param="user_scope",
|
||||
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