private RespondToAuthChallengeRequest CreateDeviceSrpAuthRequest()

in src/Amazon.Extensions.CognitoAuthentication/CognitoUserAuthentication.cs [142:163]


        private RespondToAuthChallengeRequest CreateDeviceSrpAuthRequest(RespondToAuthChallengeResponse challenge, Tuple<BigInteger, BigInteger> tupleAa)
        {
            
            RespondToAuthChallengeRequest authChallengeRequest = new RespondToAuthChallengeRequest()
            {
                ChallengeName = ChallengeNameType.DEVICE_SRP_AUTH,
                ClientId = ClientID,
                Session = challenge.Session,
                ChallengeResponses = new Dictionary<string, string>
                {
                    {CognitoConstants.ChlgParamUsername, Username},
                    {CognitoConstants.ChlgParamDeviceKey, Device.DeviceKey},
                    {CognitoConstants.ChlgParamSrpA, tupleAa.Item1.ToString("X") },
                }

            };
            if (!string.IsNullOrEmpty(SecretHash))
            {
                authChallengeRequest.ChallengeResponses.Add(CognitoConstants.ChlgParamSecretHash, SecretHash);
            }
            return authChallengeRequest;
        }