A walkthrough of implementing OAuth-based user authentication for agentic tools in IBM watsonx Orchestrate. The post demonstrates a complete OAuth authorization code flow where an AI agent books flights by reading user preferences from a secured external service on behalf of the authenticated user. Includes a working local example with an OAuth server, a TypeScript preferences service, and Python tools imported into watsonx Orchestrate, with full code snippets covering token validation middleware, REST endpoint protection, and how the Orchestrate tool retrieves the OAuth access token from the connections context.

6m read timeFrom heidloff.net
Post cover image
Table of contents
Example ScenarioExample SetupOAuth RegistrationTool CodeNext Steps

Sort: