Skip to content

Commit b7bcf11

Browse files
codecatalyst: fix invalid SSO profile in Dev Env (#5005)
Problem: When a Dev Env is spun up, the AWS Toolkit extension automatically creates an SSO profile in the Dev Env using the the sso session metadata in the ~/.aws/config file. In the scenario the ~/.aws/config file contained the session for a non-builder id session the SSO profile created would be incorrect due to the startUrl and Region being reversed with eachother when the SSO profile was created. This led to an invalid SSO profile, so any attempts to reauthenticate would fail. Solution: correctly create the SSO profile. Signed-off-by: Nikolas Komonen <[email protected]>
1 parent a7e15e1 commit b7bcf11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/auth/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ export class Auth implements AuthService, ConnectionManager {
654654

655655
return startUrl === builderIdStartUrl
656656
? [identifier, createBuilderIdProfile(scopesCodeCatalyst)]
657-
: [identifier, createSsoProfile(region, startUrl, scopesCodeCatalyst)]
657+
: [identifier, createSsoProfile(startUrl, region, scopesCodeCatalyst)]
658658
}
659659

660660
private getSsoTokenProvider(id: Connection['id'], profile: StoredProfile<SsoProfile>) {

0 commit comments

Comments
 (0)