You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The utility loadSharedConfigFiles does not load sso-session and services sections of config files.
The services section is needed for reading service specific endpoints in aws/aws-sdk-js-v3#5324
The sso-session section can be read from loadSharedConfigFiles instead of having a separate utility loadSsoSessionData
Steps to reproduce
Code:
// test.mjsimport{tmpdir}from"os";import{mkdtemp,rm,writeFile}from"fs/promises";import{loadSharedConfigFiles}from"@smithy/shared-ini-file-loader";// v2.0.13constCONFIG=`/** Copy from example below */`;consttempDir=awaitmkdtemp(tmpdir());constfilepath=`${tempDir}/credentials`;awaitwriteFile(filepath,``);constconfigFilepath=`${tempDir}/config`;awaitwriteFile(configFilepath,CONFIG);constsharedConfigFiles=awaitloadSharedConfigFiles({
filepath,
configFilepath,});console.log(JSON.stringify(sharedConfigFiles,null,2));awaitrm(tempDir,{recursive: true});
Describe the bug
The utility
loadSharedConfigFiles
does not load sso-session and services sections of config files.The
services
section is needed for reading service specific endpoints in aws/aws-sdk-js-v3#5324The
sso-session
section can be read fromloadSharedConfigFiles
instead of having a separate utilityloadSsoSessionData
Steps to reproduce
Code:
SSO config:
Services config:
Observed behavior
For sso-session:
For services:
Expected behavior
For sso-session:
For services:
The text was updated successfully, but these errors were encountered: