Simulate warden session for Duo Chat
What does this MR do and why?
Simulate warden session for Duo Chat
This ensures IDE chat will not skip group SSO verification.
This is based on !156934 (comment 1973160023).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
https://youtu.be/T7MyZbEzIYw (private video)
How to set up and validate locally
- Enable
fix_sso_enforcement_for_web_activity
andduo_chat_set_warden
feature flags - Create a group, set up group SSO check, create an issue in that group
- Set up a test user, which is a member of that group
- Create an access token of that user, set it in VS Code
- Set up VS Code to link to GDK
- In VS Code chat, ask it to summarize the created issue.
- The prompt should return an error message
Related to #470043 (closed)
Edited by Mark Chao