← Agent Authentication

Legacy Systems

Some databases and APIs will never speak OAuth. They accept an API key, a password or a service account, and nothing else. These flows show how an AI agent reaches them through Okta for AI Agents: the agent exchanges the user’s ID token for a credential that is vaulted in Okta Privileged Access (OPA), and Okta’s token exchange decides whether it gets it.

What changes, and what does not. The legacy system is not modified: it still checks a static key or password, and the agent still holds that credential while it uses it. What the design removes is hardcoding the credential in the agent. What it adds is authorization bound to the signed-in user, central vaulting, and an audit trail in the Okta System Log. It does not rotate anything for the agent, and it does not turn the legacy system into an OAuth resource.

Okta Deck (Apr 2026)Stated in Okta’s O4AA Technical Use Cases deck RFCDefined by a standard such as RFC 8693 IllustrativeMade up to show the idea; the deck does not show it

Sequence

Who sends what, in order. This diagram has its own controls and timer.

Architecture

The same flow drawn as components, with its own controls and timer. It loops on its own clock, separate from the sequence diagram. Step numbers match the sequence diagram; a moving dot shows the current message, and chips name the credential it carries.

Glossary of Terms

Every technical term used on this page, with the flow tabs where it appears.

Source and date. The flows, token types, event names and the points about authorization, rotation and System Log events come from Okta’s “O4AA Technical Use Cases” deck, an April 2026 snapshot for the general-availability release, marked Okta, Inc. Public. The request parameters for a vaulted-secret exchange, the N_A token type, expires_in 300 and the note that /revoke does not apply come from Okta’s AI agent token exchange guide for the Secret type. Product behavior can change, so verify against current Okta documentation before using these flows with a customer.

Shown as illustrative. The request and response body for a service account (the deck gives the token type and says it returns a username and password, but not the body), the error returned for a denied request, the layout of Resource Connection and record samples, the legacy API and database behavior, and the System Log filter. All hostnames, IDs, keys, passwords and values are made up. The deck does not say how OPA credential access appears in the System Log outside the token exchange, so this page does not describe it.