mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-17 19:05:13 +02:00
IAM tech spec: Auth and access management current state and proposed
changes. Support for separate workspaces Addition of workspace CLI support for test purposes
This commit is contained in:
parent
48da6c5f8b
commit
db05427d0e
219 changed files with 4875 additions and 2616 deletions
|
|
@ -84,10 +84,14 @@ class SocketClient:
|
|||
for streaming responses.
|
||||
"""
|
||||
|
||||
def __init__(self, url: str, timeout: int, token: Optional[str]) -> None:
|
||||
def __init__(
|
||||
self, url: str, timeout: int, token: Optional[str],
|
||||
workspace: str = "default",
|
||||
) -> None:
|
||||
self.url: str = self._convert_to_ws_url(url)
|
||||
self.timeout: int = timeout
|
||||
self.token: Optional[str] = token
|
||||
self.workspace: str = workspace
|
||||
self._request_counter: int = 0
|
||||
self._lock: Lock = Lock()
|
||||
self._loop: Optional[asyncio.AbstractEventLoop] = None
|
||||
|
|
@ -251,6 +255,7 @@ class SocketClient:
|
|||
try:
|
||||
message = {
|
||||
"id": request_id,
|
||||
"workspace": self.workspace,
|
||||
"service": service,
|
||||
"request": request
|
||||
}
|
||||
|
|
@ -290,6 +295,7 @@ class SocketClient:
|
|||
try:
|
||||
message = {
|
||||
"id": request_id,
|
||||
"workspace": self.workspace,
|
||||
"service": service,
|
||||
"request": request
|
||||
}
|
||||
|
|
@ -328,6 +334,7 @@ class SocketClient:
|
|||
try:
|
||||
message = {
|
||||
"id": request_id,
|
||||
"workspace": self.workspace,
|
||||
"service": service,
|
||||
"request": request
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue