mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 21:32:39 +02:00
fix MCP OAuth for all 5 services, add MCP connector edit view
This commit is contained in:
parent
dde1948a5c
commit
dfa40b8801
4 changed files with 53 additions and 16 deletions
|
|
@ -128,7 +128,7 @@ async def connect_mcp_service(
|
|||
status_code=502,
|
||||
detail=f"DCR for {svc.name} did not return a client_id.",
|
||||
)
|
||||
elif not svc.supports_dcr and svc.client_id_env:
|
||||
elif svc.client_id_env:
|
||||
client_id = getattr(config, svc.client_id_env, None)
|
||||
client_secret = getattr(config, svc.client_secret_env or "", None) or ""
|
||||
if not client_id:
|
||||
|
|
@ -446,7 +446,7 @@ async def reauth_mcp_service(
|
|||
status_code=502,
|
||||
detail=f"DCR for {svc.name} did not return a client_id.",
|
||||
)
|
||||
elif not svc.supports_dcr and svc.client_id_env:
|
||||
elif svc.client_id_env:
|
||||
client_id = getattr(config, svc.client_id_env, None)
|
||||
client_secret = getattr(config, svc.client_secret_env or "", None) or ""
|
||||
if not client_id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue