Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for AWS SSO credentials #16

Closed
rtimush opened this issue May 31, 2021 · 3 comments
Closed

Support for AWS SSO credentials #16

rtimush opened this issue May 31, 2021 · 3 comments

Comments

@rtimush
Copy link

rtimush commented May 31, 2021

If I try to use a CLI profile configured with SSO, I get the following error:

...com.amazonaws.auth.profile.ProfileCredentialsProvider@2232acfe: No AWS profile named 'my-profile'...

This is probably happening because the library uses AWS SDK v1, while SSO credentials are only supported in the AWS SDK v2.

@sayantacC
Copy link
Contributor

You are right. Loading credentials for a SSO based profile is a missing capability as of now.
We will look into how we can add support for a SSO based profile.
There are different ways forward for us:

  1. Upgrading aws-msk-iam-auth to use AWS SDK v2.
  2. Or use just the SSO capability from AWS SDK v2 (see Support for AWS SSO credentials aws-sdk-java#2434).

In the meanwhile, I will update the README to call out the missing capability.

@sayantacC
Copy link
Contributor

sayantacC commented Jun 2, 2021

Update:
I have coded up using sso in a branch https://github.com/aws/aws-msk-iam-auth/tree/sso. Sadly, I have not had the chance to test it out yet. I will look at testing it. In the meanwhile, feel free to give it a spin.

@sayantacC
Copy link
Contributor

Closing this issue as the fix for it has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants