File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import {
3232 updateConfigurationRequestType ,
3333 GetMfaCodeParams ,
3434 GetMfaCodeResult ,
35- getMfaCodeRequestType ,
3635} from '@aws/language-server-runtimes/protocol'
3736import {
3837 AuthUtil ,
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class LanguageClientAuth {
146146 {
147147 profileName : profileName ,
148148 options : {
149- generateOnInvalidStsCredential : login ,
149+ callStsOnInvalidIamCredential : login ,
150150 } ,
151151 } satisfies GetIamCredentialParams ,
152152 cancellationToken
@@ -188,7 +188,7 @@ export class LanguageClientAuth {
188188 let profile : Profile
189189 if ( roleArn ) {
190190 profile = {
191- kinds : [ ProfileKind . IamRoleSourceProfile ] ,
191+ kinds : [ ProfileKind . IamSourceProfileProfile ] ,
192192 name : profileName ,
193193 settings : {
194194 sso_session : '' ,
@@ -201,7 +201,7 @@ export class LanguageClientAuth {
201201 }
202202 } else if ( accessKey && secretKey ) {
203203 profile = {
204- kinds : [ ProfileKind . IamUserProfile ] ,
204+ kinds : [ ProfileKind . IamCredentialsProfile ] ,
205205 name : profileName ,
206206 settings : {
207207 sso_session : '' ,
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ describe('LanguageClientAuth', () => {
110110 const requestParams = client . sendRequest . firstCall . args [ 1 ]
111111 sinon . assert . match ( requestParams . profile , {
112112 name : profileName ,
113- kinds : [ ProfileKind . IamUserProfile ] ,
113+ kinds : [ ProfileKind . IamCredentialsProfile ] ,
114114 } )
115115 sinon . assert . match ( requestParams . profile . settings , {
116116 aws_access_key_id : 'accessKey' ,
You can’t perform that action at this time.
0 commit comments