@devries-cameron20 / composio-1 / commits / da63688ae
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore(sdk-py): drop internal-ticket reference from code comments

Composio committed May 4, 2026 at 10:55 UTC da63688aec413dd3344b8911c963868730bcb410
1 file changed +8 -8
python/composio/core/models/connected_accounts.py
+8 -8
@@ -23,7 +23,7 @@ from .base import Resource
23
24 logger = logging.getLogger(__name__)
25
26 -# SEC-339: schemes that take the redirectable OAuth path on the legacy
26 +# Schemes that take the redirectable OAuth path on the legacy
27 # `POST /api/v3/connected_accounts` endpoint, and so are subject to the
28 # 2026-05-08 / 2026-07-03 retirement when the auth config is Composio-managed.
29 _LEGACY_RETIRING_OAUTH_SCHEMES = frozenset({"OAUTH1", "OAUTH2", "DCR_OAUTH"})
@@ -474,10 +474,10 @@ class ConnectedAccounts:
474 ),
475 )
476 except BadRequestError as error:
477 - # SEC-339: When the server has flipped this org to the retired
478 - # path, the legacy endpoint returns 400 with a stable migration
479 - # message. Surface it as a typed error so callers get an
480 - # actionable hint instead of a generic BadRequestError.
477 + # When the server has flipped this org to the retired path, the
478 + # legacy endpoint returns 400 with a stable migration message.
479 + # Surface it as a typed error so callers get an actionable hint
480 + # instead of a generic BadRequestError.
481 message = str(error)
482 if (
483 "no longer supported" in message
@@ -488,9 +488,9 @@ class ConnectedAccounts:
488 ) from error
489 raise
490
491 - # SEC-339: Warn once per process when a successful initiate() lands
492 - # on the redirectable-OAuth path. We can't tell from the response
493 - # alone whether the auth config is Composio-managed (the field that
491 + # Warn once per process when a successful initiate() lands on the
492 + # redirectable-OAuth path. We can't tell from the response alone
493 + # whether the auth config is Composio-managed (the field that
494 # determines whether the cutover applies), so the warning text is
495 # conditional in wording — custom-OAuth users can ignore it,
496 # Composio-managed-OAuth users see a clear pointer to link() before