Handle [sso-session] section#1088
Merged
mtibben merged 4 commits into99designs:masterfrom Feb 3, 2023
Merged
Conversation
3 tasks
2c18da7 to
204fe62
Compare
dima-vm
commented
Dec 9, 2022
| // ProfileSections returns all the profile sections in the config | ||
| func (c *ConfigFile) ProfileSections() []ProfileSection { | ||
| result := []ProfileSection{} | ||
| var result []ProfileSection |
Contributor
Author
There was a problem hiding this comment.
Fixed IDE warning, no semantic change.
| } | ||
| } else if config.HasSSOStartURL() { | ||
| } else if config.HasSSOStartURL() || config.HasSSOSession() { | ||
| return NewSSORoleCredentialsProvider(t.keyring.Keyring, config) |
Contributor
Author
There was a problem hiding this comment.
In proper case, both of them are true. However, [sso-session] may lack sso_start_url. In that case I feel like it should still go the SSO way.
50161f3 to
a92c6b6
Compare
mtibben
reviewed
Dec 18, 2022
| /aws-vault-* | ||
| /SHA256SUMS | ||
|
|
||
| /.idea |
Member
There was a problem hiding this comment.
put this in your global gitignore
mtibben
reviewed
Dec 18, 2022
|
|
||
| // SSORegistrationScopes specifies registration scopes for the AWS IAM Identity Center user portal. | ||
| SSORegistrationScopes string | ||
|
|
Member
There was a problem hiding this comment.
doesn't seem this is ever used?
a92c6b6 to
e5ee07e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New AWS CLI changed config format for SSO values. Instead of specifying
sso_start_urlandsso_region,it now makes
sso_sessionprofile param, that points to a separate[sso-session]section.This PR adds support for the
sso_sessionparam and parsing[sso-session]section.