Files
dc-bytedance 36c7291cc1 fix(auth): exclude im:message.send_as_user from batch scope sets (#2471)
* fix(auth): exclude im:message.send_as_user from batch scope sets

* test(auth): isolate requested-scope cache in batch-exclusion test

* fix(auth): validate --exclude against pre-filter scope universe

The batch-exclusion filter dropped im:message.send_as_user before --exclude
was validated, so `--domain im --exclude im:message.send_as_user` returned
invalid_argument and never sent the device authorization request. That broke
automations relying on --exclude to skip the send-as-user approval.

Validate --exclude against the selected universe (post recommend/common
filter, pre batch exclusion) plus --scope; the wire request still uses the
batch-filtered effective scopes. Excluding a batch-withheld scope is now a
valid no-op, while excluding a scope outside the selection still errors so
typos are not widened.

* test(auth): assert exact scope membership in exclude regression test
2026-08-25 21:13:57 +08:00
..
2026-06-12 17:49:33 +08:00