aws / aws-msk-iam-auth

Enables developers to use AWS Identity and Access Management (IAM) to connect to their Amazon Managed Streaming for Apache Kafka (Amazon MSK) clusters.
Apache License 2.0
138 stars 65 forks source link

Add refreshing of credentials before Oauth token generation #145

Closed sankalpbhatia closed 6 months ago

sankalpbhatia commented 6 months ago

Issue #, if available: https://github.com/aws/aws-msk-iam-auth/issues/143.

Description of changes:

We'll refresh IAM credentials before every token generation to address race conditions between the token generator thread and re-authentication workflow of the connection.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.