amzn / smoke-aws-credentials

A library to obtain and assume automatically rotating AWS IAM roles written in the Swift programming language.
Apache License 2.0
19 stars 14 forks source link

Expose conformance to CredentialsProviderV2. #40

Closed tachyonics closed 10 months ago

tachyonics commented 10 months ago

Issue #, if available:

Description of changes:

  1. Expose conformance to CredentialsProviderV2, allowing this protocol to be used without a type cast.
  2. Provide more descriptive logging including the expiry date of the current credentials and consistently use the decorated logger passed into AwsRotatingCredentialsProviderV2 (this was always decorated with the credentials.source metadata and so doesn't need roleSessionName which provides the same information)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.