Skip to content

Commit 6bbf2ee

Browse files
committed
test(plugin-auth): the plugin-list pins name the agent forward view, registered after bearer() on every instance
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyagSyLB5ckJsKghoa
1 parent 023ce05 commit 6bbf2ee

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/plugins/plugin-auth/src/auth-manager.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ describe('AuthManager', () => {
429429
await manager.getAuthInstance();
430430
warnSpy.mockRestore();
431431

432-
expect(capturedConfig.plugins.map((p: any) => p.id)).toEqual(['bearer', 'organization']);
432+
// [#28367] The agent forward view rides right after bearer(), on every instance.
433+
expect(capturedConfig.plugins.map((p: any) => p.id)).toEqual(['bearer', 'objectstack-agent-forward-identity-view', 'organization']);
433434
});
434435

435436
it('should register organization plugin with schema mapping when enabled', async () => {
@@ -1626,9 +1627,9 @@ describe('AuthManager', () => {
16261627
await manager.getAuthInstance();
16271628
warnSpy.mockRestore();
16281629

1629-
expect(capturedConfig.plugins).toHaveLength(4);
1630+
expect(capturedConfig.plugins).toHaveLength(5);
16301631
expect(capturedConfig.plugins.map((p: any) => p.id).sort()).toEqual(
1631-
['bearer', 'magic-link', 'organization', 'two-factor'],
1632+
['bearer', 'magic-link', 'objectstack-agent-forward-identity-view', 'organization', 'two-factor'],
16321633
);
16331634
});
16341635
});

0 commit comments

Comments
 (0)