Ejemplo n.º 1
0
 public ClientInfo(string username, string name, DeviceInfo deviceInfo, Util.OtpInfo otpInfo)
 {
     Username   = username;
     Name       = name;
     DeviceInfo = deviceInfo;
     OtpInfo    = otpInfo;
 }
Ejemplo n.º 2
0
        internal static Dictionary <string, object> RandomOtpChallngeAsDictionary(Util.OtpInfo otp)
        {
            var challenge = Util.GenerateRandomOtpChallenge(otp);

            return(new Dictionary <string, object> {
                { "qn", challenge.Challenge.ToBase64() },
                { "otpType", "time" },
                { "otp", challenge.Signature.ToBase64() },
            });
        }