Skip to content

Guideline on using java sdk with AWS SSO credentials? #1970

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

Closed
ragebiswas opened this issue Aug 1, 2020 · 6 comments
Closed

Guideline on using java sdk with AWS SSO credentials? #1970

ragebiswas opened this issue Aug 1, 2020 · 6 comments
Labels
feature-request A feature should be added or improved.

Comments

@ragebiswas
Copy link

Describe the issue

Hi, feel free to close if this is a naive / obvious question - but I'm not able to find documentation on how to use Java SDK (V1 or V2) if my org uses AWS SSO to login.

Steps to Reproduce

I currently am using the default credential provider, but that does not seem to work an says that none of the tried authentication methods (including AWS_* env vars) are found and hence aborts.

I am able to work around by copy pasting env vars from the AWS SSO portal (via the "Command Line / Programmatic Access" link) but this is fairly inconvenient.

Is there a credential provider that works with AWS SSO named profiles?

@ragebiswas ragebiswas added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Aug 1, 2020
@froderick
Copy link

I have the same question. 👍

@debora-ito
Copy link
Member

@ragebiswas @froderick you are right, currently the SDK does not support any form of integration with AWS Single Sign-On. This is a feature that needs to be supported across all the AWS SDKs so it requires more planning and design process than usual.

Marking as a feature request.

@debora-ito debora-ito added feature-request A feature should be added or improved. and removed guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Aug 5, 2020
@ragebiswas
Copy link
Author

Thanks @debora-ito . It seems the boto3 library in Python has added support: boto/botocore#2070

It would be great if this could be prioritized soon as well.

For those coming to this page, I've used yawsso as a workaround - a bit easier than copy pasting env vars from the AWS SSO browser page.

@gdhananjay
Copy link

It will be great if this support is added soon, I am also waiting for the same.

@debora-ito
Copy link
Member

Apologies for the late update in here.

Support for SSO Credential Provider was added via #2118 and is available in SDK version 2.15.33.
We are tracking an issue in #2190 when the aws cli SSO is used first and then the Java SDK SSO fails with a timestamp format error.

@github-actions
Copy link

github-actions bot commented Jan 4, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

4 participants