Skip to content

Commit

Permalink
add client metadata to init auth call.
Browse files Browse the repository at this point in the history
  • Loading branch information
willsmith9182 committed Oct 4, 2023
1 parent e7417d8 commit 9e2aaa5
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 9e2aaa5

Please sign in to comment.