Agent id actor not accepted
Code: legacyactordisabled
On this page
Code: legacy_actor_disabled
- HTTP status: 400 Bad Request
- OAuth
error:invalid_grant - Shown to the end user: Agent id actor not accepted
Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.
Cause
The token exchange named the actor with a bare agent id as actor_token. That form proves nothing about the actor, so it is off unless the realm has it turned on and its operator lists the realm for a migration. The body carries code legacy_actor_disabled.
Fix
Send a real actor_token: the actor's own access token (a service account's client_credentials token, or a workload or agent token) with actor_token_type urn:ietf:params:oauth:token-type:access_token, or a trusted issuer's JWT with actor_token_type urn:ietf:params:oauth:token-type:jwt.