@@ -31,6 +31,7 @@ export function vaultSignatureCb(
3131 ) => void ,
3232 streamingV4Params ?: any ,
3333 authType ?: string ,
34+ accessKey ?: string ,
3435) {
3536 // vaultclient API guarantees that it returns:
3637 // - either `err`, an Error object with `code` and `message` properties set
@@ -53,7 +54,7 @@ export function vaultSignatureCb(
5354
5455 const info = authInfo . message . body as AuthV4Results ;
5556 const userInfo = new AuthInfo ( info . userInfo ,
56- streamingV4Params ? 'SigV4' : 'SigV2' , authType ) ;
57+ streamingV4Params ? 'SigV4' : 'SigV2' , authType , accessKey ) ;
5758 const authorizationResults = info . authorizationResults ;
5859 const auditLog : { accountDisplayName : string , IAMdisplayName ?: string } =
5960 { accountDisplayName : userInfo . getAccountDisplayName ( ) } ;
@@ -176,7 +177,7 @@ export default class Vault {
176177 } ,
177178 ( err : Error | null , userInfo ?: any ) => vaultSignatureCb ( err ,
178179 userInfo , params . log , callback , undefined ,
179- params . data . authType ) ,
180+ params . data . authType , params . data . accessKey ) ,
180181 ) ;
181182 }
182183
@@ -239,7 +240,8 @@ export default class Vault {
239240 } ,
240241 ( err : Error | null , userInfo ?: any ) => vaultSignatureCb ( err ,
241242 userInfo , params . log , callback ,
242- streamingV4Params , params . data . authType ) ,
243+ streamingV4Params ,
244+ params . data . authType , params . data . accessKey ) ,
243245 ) ;
244246 }
245247
0 commit comments