Skip to content

Commit 4a2c283

Browse files
authored
Merge pull request #110 from cloudgraphdev/revert-108-feat/mfa-support
Revert "feat(auth): support mfa based auth"
2 parents b70cee4 + 1e9550a commit 4a2c283

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/services/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -310,18 +310,7 @@ export default class Provider extends CloudGraph.Client {
310310
if (profile && profile !== 'default') {
311311
let creds: AWS.Credentials
312312
const credsFunction = fromIni({
313-
profile,
314-
// MFA token support
315-
mfaCodeProvider: async () => {
316-
const { mfaToken = '' }: { mfaToken: string } = await this.interface.prompt([
317-
{
318-
type: 'input',
319-
message: `Please enter the MFA token for ${profile}`,
320-
name: 'mfaToken'
321-
},
322-
])
323-
return mfaToken
324-
}
313+
profile
325314
})
326315
if (creds) {
327316
sts = new AWS.STS({ credentials: await credsFunction() })

0 commit comments

Comments
 (0)