sbt-ecr icon indicating copy to clipboard operation
sbt-ecr copied to clipboard

Add support for SSO authentication.

Open crossroad0201 opened this issue 3 years ago • 2 comments

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.

crossroad0201 avatar May 18 '21 09:05 crossroad0201

Could you take a look on this? :-)

crossroad0201 avatar Jun 24 '21 09:06 crossroad0201

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🙏

exoego avatar Sep 28 '21 06:09 exoego