Skip to content

Commit 82eed29

Browse files
refactor: auth code (#3525)
- The overall folder named is now src/auth/ instead of src/credentials/ - The auth.ts module now focuses only on the Auth client and does not have other related code in the same module - When dealing with a Connection object like an Sso, BuilderId, or Credentials/IAM connection, related code was moved from auth.ts to connection.ts. This helps to avoid circular dependencies when working with connections + auth. - The functional code previously in auth.ts was moved to src/auth/utils.ts to create separation between the functions and the Auth client. - Existing credentials related files were moved in to src/auth/credentials/ to consolidate them - A new folder was made in src/auth/ui/ that will hold all auth related UI code, including the status bar item and add connection webview. Signed-off-by: Nikolas Komonen <[email protected]>
1 parent 784d2ae commit 82eed29

File tree

101 files changed

+1856
-1793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1856
-1793
lines changed

src/credentials/activation.ts renamed to src/auth/activation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import * as vscode from 'vscode'
77
import { AwsContext } from '../shared/awsContext'
88
import { Auth } from './auth'
9-
import { LoginManager } from './loginManager'
9+
import { LoginManager } from './deprecated/loginManager'
1010
import { fromString } from './providers/credentials'
11-
import { AuthCommandBackend, AuthCommandDeclarations } from './commands'
1211
import { registerCommandsWithVSCode } from '../shared/vscode/commands2'
12+
import { AuthCommandBackend, AuthCommandDeclarations } from './commands'
1313

1414
export async function initialize(
1515
extensionContext: vscode.ExtensionContext,

0 commit comments

Comments
 (0)