Skip to main content

Agent Authentication

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Agent authentication is how an agent proves which agent it is to Choreo Identity & Access Management. Because an agent runs unattended and acts on its own behalf, it presents its own credential on every token request, and that credential is what ties each request and every action back to that specific agent.

Prove the agent's identity​

The agent authenticates to Choreo Identity & Access Management with one of these methods. Choose the one that matches how sensitive the agent's work is.

MethodHow the agent authenticatesUse when
Client secret (client_secret_basic or client_secret_post)A shared secretStandard server-side agents
Private key JWT (private_key_jwt)A signed assertion, with no shared secretHigher-security agents

Use a client secret​

A client secret is issued when the agent has an OAuth 2.0 configuration, which the Console provisions by default at registration. To replace it, either for routine rotation or after a suspected leak, click Regenerate client secret on the agent's Credentials tab. The new secret is shown once, and the old one stops working immediately.

Rotating the secret refreshes the agent's credential only. It does not change the agent's identity, its ID, or the access it has been granted.

See Client Authentication Methods for how the agent presents the secret (client_secret_basic or client_secret_post).

Use a private key JWT​

For agents that should not hold a shared secret at all, the agent can authenticate by signing an assertion with a private key that only it possesses.

On the Advanced tab, set Client authentication method to private_key_jwt, then on the Credentials tab provide the Certificate: an inline JWKS (JSON Web Key Set) or a JWKS URI. The agent signs a JWT assertion with its private key, and Choreo Identity & Access Management verifies it against the public keys in that JWKS.

An agent using private_key_jwt must have a certificate and no client secret, so provide the certificate when you switch an agent to this method.

See Client Authentication Methods for the private_key_jwt assertion, and JWKS for the certificate formats.

Agents are confidential clients

Choreo Identity & Access Management agents are confidential clients, each holding its own credential (a client secret or a signed key). Because an agent runs unattended and acts on its own behalf, it must prove its own identity to the authorization server, and only a client-held credential can do that. This is what makes an agent's actions attributable to it.

A public client (no secret) cannot prove its own identity, so it cannot use the client_credentials grant and can act only in user-delegated flows. Setting Client authentication method to none therefore marks the agent as a public client, which rules out a client secret and the client_credentials grant. The Console offers none but disables it unless the agent uses authorization_code without client_credentials.

Was this page helpful?