Open congyue-chewie opened 2 months ago
Would it make sense to have the auto refresh itself be toggle in the config file somewhere. Or is that already something that's done via not having granted_sso_registration_scopes
present in the ~/.aws/config
file?
This issue was from this slack discussion.
If the
.aws/config
was previously populated by other third-party aws cli, it may confuse the granted/assume and cause the AWS access not being set up properly. e.g. If the.aws/config
was populated by aws-sso-util:In recent version of granted, if it detects
credential_process
field like above, it would enable the auto-refresh feature and only set part of the environment variables. However the rest of the fields above are not compatible with granted.Suggestion: granted can check if all necessary fields exist in
.aws/config
(instead ofcredential_process
only) before enabling the auto refresh ? So that users with above config file can still run granted in “compatible” mode?