Issue a new AgentIdentity (legacy method).
(
data: AgentIdentityCreate,
db: Annotated[AsyncSession, Depends(get_db)],
)
| 151 | description="Legacy endpoint — generates keypair internally. Prefer /csr/submit + /issue.", |
| 152 | ) |
| 153 | async 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( |
nothing calls this directly
no test coverage detected