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

Add AWS SSO support #170

Merged
merged 4 commits into from
Apr 2, 2023
Merged

Add AWS SSO support #170

merged 4 commits into from
Apr 2, 2023

Conversation

emgarten
Copy link
Owner

@emgarten emgarten commented Apr 2, 2023

Add support for AWS profiles with SSO

I based this work on:
https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/sso.html

It looks relatively straight forward to add, however it is unclear how this works as a fallback with the existing profile support and unfortunately I don't have an SSO account to test this with.

As a fallback this should be safe since the existing profile load runs first. My concern is when looking at the code for the existing profile load I see internally it runs with isSsoSession: false and doesn't appear to allow setting it to true.

Potentially an SSO profile could get loaded from the existing profile load. The result may or may not work due to that flag. If it gives incomplete credentials it may return true and not fallback to the new SSO code.

I'm going to go ahead with this change because either way including the AWS SSO SDK binaries looks like a step in the right direction based on the fact that currently Sleet will throw an assembly load exception since those binaries aren't there. The AWS SDK clearly knows about them, but the SDK NuGet package doesn't have a dependency on those. It is up to app to bring them in.

Fixes: #168

@emgarten emgarten merged commit 70a8252 into main Apr 2, 2023
@emgarten emgarten deleted the emgarten/sso branch April 2, 2023 20:52
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

Successfully merging this pull request may close these issues.

AWS SSO Exception
1 participant