Skip to content

Commit

Permalink
Merge pull request #135 from willsmith9182/params-on-init-auth
Browse files Browse the repository at this point in the history
Adding ClientMetadata to InitiateAuthRequest during StartWithSrpAuthAsync
  • Loading branch information
peterrsongg authored May 3, 2024
2 parents 047121c + 9e2aaa5 commit 51cb734
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public virtual async Task<AuthFlowResponse> StartWithSrpAuthAsync(InitiateSrpAut
Tuple<BigInteger, BigInteger> tupleAa = AuthenticationHelper.CreateAaTuple();
InitiateAuthRequest initiateRequest = CreateSrpAuthRequest(tupleAa);

if (srpRequest.ClientMetadata != null)
{
initiateRequest.ClientMetadata = new Dictionary<string, string>(srpRequest.ClientMetadata);
}

if (srpRequest.IsCustomAuthFlow)
{
initiateRequest.AuthFlow = AuthFlowType.CUSTOM_AUTH;
Expand Down

0 comments on commit 51cb734

Please sign in to comment.