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

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