Merge pull request #225 from Molecule-AI/fix/issue-215-register-auth
fix(workspace-template): add auth_headers() to /registry/register POST
This commit is contained in:
commit
38fcb8a374
@ -30,6 +30,7 @@ from initial_prompt import (
|
||||
mark_initial_prompt_attempted,
|
||||
resolve_initial_prompt_marker,
|
||||
)
|
||||
from platform_auth import auth_headers
|
||||
|
||||
|
||||
def get_machine_ip() -> str: # pragma: no cover
|
||||
@ -203,6 +204,7 @@ async def main(): # pragma: no cover
|
||||
"url": workspace_url,
|
||||
"agent_card": agent_card_dict,
|
||||
},
|
||||
headers=auth_headers(),
|
||||
)
|
||||
print(f"Registered with platform: {resp.status_code}")
|
||||
# Phase 30.1 — capture the auth token issued at first register.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user