Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ def retrieve_token(
Returns:
ConnectionToken: The authentication token details, including the token
value and any associated metadata.

Note:
`ConnectionTokenType.DIRECT`, the default, returns the connection's raw
vendor token. Integration Service restricts it to existing callers, so
new code should not build on it.
"""
spec = self._retrieve_token_spec(key, token_type)
response = self.request(spec.method, url=spec.endpoint, params=spec.params)
Expand All @@ -425,6 +430,11 @@ async def retrieve_token_async(
Returns:
ConnectionToken: The authentication token details, including the token
value and any associated metadata.

Note:
`ConnectionTokenType.DIRECT`, the default, returns the connection's raw
vendor token. Integration Service restricts it to existing callers, so
new code should not build on it.
"""
spec = self._retrieve_token_spec(key, token_type)
response = await self.request_async(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class Connection(BaseModel):


class ConnectionTokenType(str, Enum):
"""Enum representing types of connection tokens."""
"""Enum representing types of connection tokens.

`DIRECT` returns the connection's raw vendor token. Integration Service
restricts it to existing callers, so new code should not build on it.
"""

DIRECT = "direct"
BEARER = "bearer"
Expand Down
Loading