Skip to content

Commit 51cb734

Browse files
authored
Merge pull request #135 from willsmith9182/params-on-init-auth
Adding ClientMetadata to InitiateAuthRequest during StartWithSrpAuthAsync
2 parents 047121c + 9e2aaa5 commit 51cb734

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Amazon.Extensions.CognitoAuthentication/CognitoUserAuthentication.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public virtual async Task<AuthFlowResponse> StartWithSrpAuthAsync(InitiateSrpAut
6363
Tuple<BigInteger, BigInteger> tupleAa = AuthenticationHelper.CreateAaTuple();
6464
InitiateAuthRequest initiateRequest = CreateSrpAuthRequest(tupleAa);
6565

66+
if (srpRequest.ClientMetadata != null)
67+
{
68+
initiateRequest.ClientMetadata = new Dictionary<string, string>(srpRequest.ClientMetadata);
69+
}
70+
6671
if (srpRequest.IsCustomAuthFlow)
6772
{
6873
initiateRequest.AuthFlow = AuthFlowType.CUSTOM_AUTH;

0 commit comments

Comments
 (0)