sbt-ecr
sbt-ecr copied to clipboard
Add support for SSO authentication.
Objective
Supports authentication to ECR repository via SSO.
Changes
- [Added] Added dependency library software.amazon.awssdk:sso for SSO support.
- [Added] Create new class SsoCredentialsProviderAdapter for get credential via SSO. This class is adapter AWS SDK V2 to V1.
- [Update] Added SsoCredentialsProviderAdapter to credential providers.
Note
-
If DateTimeParseException occurred, require upgrade AWS CLI. Because, older AWS CLI generate a SSO token that includes invalid format expire datetime.
- See https://github.com/aws/aws-sdk-java-v2/issues/2190
-
Require refresh cached SSO token via aws sso login command, if token was expired.
Could you take a look on this? :-)
This is great!! Since my organization migrated to SSO, SSO auth support is critical for me.
@sjednac Could you kindly review on this and publish new version🙏