A developer is embedding watsonx Assistant web chat on a financial services website that serves authenticated customers. The security team requires that only logged-in users can initiate chat sessions, and user identity must be verifiable. Which security mechanism should be implemented in the web chat integration?
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 — implement json web token (jwt) authentication so the web server signs a token that watsonx assistant validates before starting a session is your go-to move. watsonx Assistant web chat supports JWT-based security to authenticate users and prevent unauthorized sessions. This is a classic Domain 7: Multi-Modal Integration concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
watsonx Assistant web chat supports JWT-based security to authenticate users and prevent unauthorized sessions. The host web application generates a signed JWT using a secret shared with watsonx Assistant. When the web chat widget initializes, it passes the JWT; watsonx Assistant validates it before starting the session. This allows user identity and context (like account ID) to be securely passed at session start. CORS and IP allowlisting do not verify individual user identity. The correct answer, "Implement JSON Web Token (JWT) authentication so the web server signs a token that watsonx Assistant validates before starting a session", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Enable CORS restrictions in the web chat channel settings to block unauthenticated origins", "Configure IP allowlisting in the watsonx Assistant instance settings to restrict access by network", "Require users to enter a passcode in the web chat window before the assistant responds") 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 7: Multi-Modal Integration section of the certification exam.