Enroll an agent identity under the authenticated human identity. The caller must be the delegator named in the certificate — the server verifies the proof against the public key it has on record for the caller, so a certificate signed by anyone else is rejected no matter who presents it.
(
&self,
req: &EnrollAgentRequest,
)
| 443 | /// caller, so a certificate signed by anyone else is rejected no matter who |
| 444 | /// presents it. |
| 445 | pub async fn enroll_agent( |
| 446 | &self, |
| 447 | req: &EnrollAgentRequest, |
| 448 | ) -> Result<AgentIdentityInfo, RemoteError> { |
| 449 | self.post("/identities/agents", req).await |
| 450 | } |
| 451 | |
| 452 | /// List the agents enrolled under the authenticated identity. |
| 453 | pub async fn list_agents(&self) -> Result<Vec<AgentIdentityInfo>, RemoteError> { |