Closed Itamaram closed 1 year ago
Bump. I need this and I think a lot of people using CustomAuth Flows need it too. Since it is already approved by @ashishdhingra, why is the merge pending since Feb? Do it also needs @normj approval?
Changes released in Amazon.Extensions.CognitoAuthentication 2.2.3.
Great! Thanks!
The current implementation of
CognitoUser.RespondToCustomAuthAsync
does not support setting theClientMetadata
property of theRespondToAuthChallengeRequest
object, despite it being supported by the API.This PR rectifies this by adding a
ClientMetadata
dictionary property to theRespondToCustomChallengeRequest
dto, which is then used in building theRespondToAuthChallengeRequest
object.The new property added to the
RespondToCustomChallengeRequest
dto is using an object initialiser to ensure backwards compatibility. Without it, consumers upgrading to a version of this package containing this change will experience anArgumentNullException
when callingRespondToCustomAuthAsync
asClientMetadata
will be set tonew new Dictionary<string, string>(customRequest.ClientMetadata)
withcustomRequest.ClientMetadata
beingnull
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.