Skip to content

Conversation

@liramon1
Copy link

@liramon1 liramon1 commented Jul 25, 2025

Problem

The agentic bundle for the CodeWhisperer LSP only supports SSO. If language clients want it to consume IAM credentials, they must start a completely separate bundle which includes the IAM implementation of the CodeWhisperer LSP. This prevents clients from seamlessly switching authentication methods at runtime.

Solution

This is part of #1981.

This PR combines the IAM and SSO implementations of the AmazonQServiceManager. References to AmazonQTokenServiceManager and AmazonQIAMServiceManager will be changed in a later PR.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@liramon1 liramon1 requested a review from a team as a code owner July 25, 2025 16:25
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch 4 times, most recently from 4f5fc2d to d093e42 Compare July 25, 2025 18:10
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch 3 times, most recently from 82eeaf9 to e96e1c1 Compare July 28, 2025 20:07
@liramon1 liramon1 force-pushed the unified-cw2 branch 2 times, most recently from 0b44a44 to ae8d6d7 Compare July 29, 2025 20:01
@liramon1 liramon1 requested a review from leigaol July 29, 2025 20:45

private streamingClientFactory(region: string, endpoint: string): StreamingClientServiceBase {
let streamingClient: StreamingClientServiceBase
if (this.features.credentialsProvider.hasCredentials('iam')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also apply to non streaming client

@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch from d06f3bd to 4ffa4fe Compare July 30, 2025 14:22
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch from 4ffa4fe to 2e54a43 Compare July 30, 2025 17:47
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch from 2e54a43 to e9050ee Compare July 30, 2025 18:05
@liramon1 liramon1 force-pushed the unified-cw2 branch 2 times, most recently from 117a27c to ad37057 Compare July 31, 2025 13:46
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch from 776a609 to 8f1c33a Compare July 31, 2025 14:00
@liramon1 liramon1 force-pushed the liramon/flare-iam-base branch from 24d84ef to b62b302 Compare August 1, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants