You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping that there's a way of using awscrt.auth.AwsCredentialsProvider to authenticate a Python app that communicates with IoT Core/Shadow Service using an AWS SSO profile, rather that requiring a sytatic set of IAM credentials (access key/secret pair) in an ~/.aws/credentials file.
Is this possible?
Many thanks.
The text was updated successfully, but these errors were encountered:
The aws-c-* libraries don't implement an SSO-based credentials provider yet, so you can't do that directly. However, you should be able to use the standard AWS SDK for python SSO provider implementation and wrap that in a delegate provider that defers to the Python SDK provider: https://github.com/awslabs/aws-crt-python/blob/main/awscrt/auth.py#L282.
in case somebody else stumbles upon this, here is an implementation of a credentials provider that delegates to standard AWS SDK. It should be reasonably solid, but is not really battle tested:
Hi,
I'm hoping that there's a way of using
awscrt.auth.AwsCredentialsProvider
to authenticate a Python app that communicates with IoT Core/Shadow Service using an AWS SSO profile, rather that requiring a sytatic set of IAM credentials (access key/secret pair) in an~/.aws/credentials
file.Is this possible?
Many thanks.
The text was updated successfully, but these errors were encountered: