@@ -5,6 +5,7 @@ import * as path from "node:path";
55
66import { window } from "vscode" ;
77
8+ import { readAuthToken } from "./authenticate.ts" ;
89import { parseIni , serializeIni , updateIniSection } from "./ini-parser.ts" ;
910import type { IniFile , IniSection } from "./ini-parser.ts" ;
1011import type { Telemetry } from "./telemetry.ts" ;
@@ -296,6 +297,8 @@ export async function configureAwsProfiles(options: {
296297 const credentialsNeedsOverride =
297298 checkIfCredentialsNeedsOverride ( credentialsSection ) ;
298299
300+ const authToken = await readAuthToken ( ) ;
301+
299302 // means sections exist, but we need to check what's inside
300303 if ( credentialsSection && configSection ) {
301304 if ( ! configNeedsOverride && ! credentialsNeedsOverride ) {
@@ -314,6 +317,7 @@ export async function configureAwsProfiles(options: {
314317 started_at : startedAt ,
315318 ended_at : new Date ( ) . toISOString ( ) ,
316319 status : "COMPLETED" ,
320+ auth_token : authToken ,
317321 } ,
318322 } ) ;
319323 return ;
@@ -347,6 +351,7 @@ export async function configureAwsProfiles(options: {
347351 started_at : startedAt ,
348352 ended_at : new Date ( ) . toISOString ( ) ,
349353 status : "SKIPPED" ,
354+ auth_token : authToken ,
350355 } ,
351356 } ) ;
352357 return ;
@@ -380,6 +385,7 @@ export async function configureAwsProfiles(options: {
380385 started_at : startedAt ,
381386 ended_at : new Date ( ) . toISOString ( ) ,
382387 status : "COMPLETED" ,
388+ auth_token : authToken ,
383389 } ,
384390 } ) ;
385391 } else if ( configNeedsOverride ) {
@@ -402,6 +408,7 @@ export async function configureAwsProfiles(options: {
402408 started_at : startedAt ,
403409 ended_at : new Date ( ) . toISOString ( ) ,
404410 status : "COMPLETED" ,
411+ auth_token : authToken ,
405412 } ,
406413 } ) ;
407414 } else if ( credentialsNeedsOverride ) {
@@ -424,6 +431,7 @@ export async function configureAwsProfiles(options: {
424431 started_at : startedAt ,
425432 ended_at : new Date ( ) . toISOString ( ) ,
426433 status : "COMPLETED" ,
434+ auth_token : authToken ,
427435 } ,
428436 } ) ;
429437 }
0 commit comments