Skip to content

Commit

Permalink
fix: correct reference to profile in sso-token-provider (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddsriv authored Aug 24, 2023
1 parent da84357 commit 40adae0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/token/sso_token_provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ AWS.SSOTokenProvider = AWS.util.inherit(AWS.Token, {
);
} else if (!profile['sso_session']) {
throw AWS.util.error(
new Error('Profile "' + profileName + '" is missing required property "sso_session".'),
new Error('Profile "' + this.profile + '" is missing required property "sso_session".'),
{ code: 'SSOTokenProviderFailure' }
);
}
Expand All @@ -138,12 +138,12 @@ AWS.SSOTokenProvider = AWS.util.inherit(AWS.Token, {
);
} else if (!ssoSession['sso_start_url']) {
throw AWS.util.error(
new Error('Sso session "' + profileName + '" is missing required property "sso_start_url".'),
new Error('Sso session "' + this.profile + '" is missing required property "sso_start_url".'),
{ code: 'SSOTokenProviderFailure' }
);
} else if (!ssoSession['sso_region']) {
throw AWS.util.error(
new Error('Sso session "' + profileName + '" is missing required property "sso_region".'),
new Error('Sso session "' + this.profile + '" is missing required property "sso_region".'),
{ code: 'SSOTokenProviderFailure' }
);
}
Expand Down

0 comments on commit 40adae0

Please sign in to comment.