When session is present on the config it should be where we get the start_url and region. Most configs will not have said config under profile if they have a session block. Session block takes priority for the configuration as it's considered as it's connecting profiles together.
Fix for #577
Why?
Although it's working properly for awscli the generated token does not contain sso_start_url which could be problematic for other code that relies on that property when looking for a valid config.
How did you test it?
dassume --export-sso-token
cat ~/.aws/sso/cache/<corresponding json> should give out
What changed?
When
session
is present on the config it should be where we get thestart_url
andregion
. Most configs will not have said config underprofile
if they have a session block. Session block takes priority for the configuration as it's considered as it's connecting profiles together.Fix for #577
Why?
Although it's working properly for
awscli
the generated token does not containsso_start_url
which could be problematic for other code that relies on that property when looking for a valid config.How did you test it?
dassume --export-sso-token
cat
~/.aws/sso/cache/<corresponding json>
should give outPotential risks
Is patch release candidate?
Link to relevant docs PRs