Skip to content
Merged
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
24 changes: 24 additions & 0 deletions libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,3 +1459,27 @@ def api_get_ttl(self) -> requests.Response:
the response contains the remaining lifetime (in seconds) of the token until it expires
"""
return self.api_request("GET", "token/ttl")

def api_get_third_party_application_installation(
self,
client_id: str,
) -> requests.Response:
"""Returns the installation information for the organization.

Returns:
requests.Response:
the response
"""
return self.api_request("GET", f"client-installations/{client_id}")

def api_get_third_party_application(
self,
client_id: str,
) -> requests.Response:
"""Returns the client information.

Returns:
requests.Response:
the response
"""
return self.api_request("GET", f"clients/{client_id}")
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def assert_in_literal(option, literal, variable_name) -> None: # noqa: ANN001
MultipassClientType = Literal["CONFIDENTIAL", "PUBLIC"]
"""Multipass client types."""

MultipassGrantType = Literal["AUTHORIZATION_CODE", "CLIENT_CREDENTIALS", "REFRESH_TOKEN"]
MultipassGrantType = Literal["AUTHORIZATION_CODE", "CLIENT_CREDENTIALS", "REFRESH_TOKEN", "JWT_BEARER"]
"""Multipass grant types."""

ResourceDecoration = Literal[
Expand Down
Loading