aws-sdk-net-extensions-cognito icon indicating copy to clipboard operation
aws-sdk-net-extensions-cognito copied to clipboard

Adding ClientMetadata to InitiateAuthRequest during StartWithSrpAuthAsync

Open willsmith9182 opened this issue 2 years ago • 0 comments
trafficstars

Issue #, if available:

Description of changes:

ClientMetadata is set on InitiateAuthRequest if present in InitiateSrpAuthRequest.

We use a pre-auth hook to do some captcha stuff in Cognito, we use ClientMetadata to send captcha values.

Without this change ClientMetadata values are not send as expected. In other Client libraries (like React) this data is currently forwarded.

My pre-auth hook is now happy, but I suspect this may want a deeper look into where else these values are not added when they should be.

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

willsmith9182 avatar Oct 04 '23 16:10 willsmith9182