Open trevorstr opened 11 months ago
Unfortunately, what you're trying to do isn't implemented in the current release (see https://github.com/awslabs/aws-sdk-rust/issues/703). I think it should land in a release fairly soon though, as it's just about ready to be merged (https://github.com/awslabs/smithy-rs/pull/2917).
Describe the issue
We are an AWS partner and require SSO to access AWS via Okta. I am writing a Rust application against AWS APIs, which needs to authenticate via SSO.
There is no documentation on how to use SSO with the Rust SDK.
Using the crate reference, I was able to hack something together that compiles, but panics at runtime.
The AWS CLI works fine with SSO, so I know the credentials work alright. I need to get the Rust SDK working though.
The panic shows this error message, indicating that the Rust SDK is looking for a SSO cache file that doesn't even exist on the local filesystem:
How do I authenticate to AWS with SSO, using the Rust SDK?
Links
https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credentials.html