MCPcopy Index your code
hub / github.com/MetapriseAI/OrgKernel / issue_identity

Function issue_identity

src/orgkernel/pyapi/router.py:153–159  ·  view source on GitHub ↗

Issue a new AgentIdentity (legacy method).

(
    data: AgentIdentityCreate,
    db: Annotated[AsyncSession, Depends(get_db)],
)

Source from the content-addressed store, hash-verified

151 description="Legacy endpoint — generates keypair internally. Prefer /csr/submit + /issue.",
152)
153async def issue_identity(
154 data: AgentIdentityCreate,
155 db: Annotated[AsyncSession, Depends(get_db)],
156) -> AgentIdentityOut:
157 """Issue a new AgentIdentity (legacy method)."""
158 svc = AgentIdentityService(db)
159 return await svc.issue(data)
160
161
162@_identity.get(

Callers

nothing calls this directly

Calls 2

issueMethod · 0.95

Tested by

no test coverage detected