A developer has configured a custom extension for an external CRM API but the assistant always returns an error when the extension is invoked. The extension requires an OAuth 2.0 bearer token. Where in the watsonx Assistant UI should the developer supply the OAuth credentials?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — enter the oauth client id, secret, and token url in the extension's authentication settings when adding it to the environment is your go-to move. When adding a custom extension to an environment, watsonx Assistant prompts the engineer to configure authentication. This is a classic Domain 4: Integrate with watsonx concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
When adding a custom extension to an environment, watsonx Assistant prompts the engineer to configure authentication. For OAuth 2.0 the engineer supplies the client ID, client secret, and token URL; the platform handles token retrieval and refresh automatically. Hard-coding tokens in the spec or context variables bypasses this secure mechanism and requires manual rotation. The correct answer, "Enter the OAuth client ID, secret, and token URL in the extension's Authentication settings when adding it to the environment", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Paste the token directly into the action step's 'Set variable' field before calling the extension", "Add the token as a hard-coded HTTP header inside the OpenAPI spec before importing it", "Store the token in a context variable named 'oauth_token' and reference it in the extension input mapping") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 4: Integrate with watsonx section of the certification exam.