Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process sso-session names with config prefix separator #1173

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Feb 27, 2024

Issue #, if available:
Fixes: #1163

Description of changes:
Process sso-session names with config prefix separator

Testing:

$ cat test.mjs
import { loadSsoSessionData } from "../smithy-typescript/packages/shared-ini-file-loader/dist-cjs/index.js";
console.log(await loadSsoSessionData());

$ cat ~/.aws/config
[profile my.big.profile]
region = us-east-1
sso_session = my.sso
sso_account_id = 123456789
sso_role_name = BigRole

[sso-session my.sso]
sso_region = us-east-1
sso_start_url = https://magic-app.awsapps.com/start
sso_registration_scopes = sso:account:access

$ node test.mjs 
{
  'my.sso': {
    sso_region: 'us-east-1',
    sso_start_url: 'https://magic-app.awsapps.com/start',
    sso_registration_scopes: 'sso:account:access'
  }
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr marked this pull request as ready for review February 27, 2024 19:39
@trivikr trivikr requested review from a team as code owners February 27, 2024 19:39
@trivikr trivikr merged commit 8fd5196 into main Feb 27, 2024
7 checks passed
@trivikr trivikr deleted the get-sso-session-data branch February 27, 2024 21:11
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not support "." (dots) in profile names
3 participants