Esempio n. 1
0
        // Sign up user with passed credentials. RSA key pair will be generated automatically.
        public static bool SignUp(string name, string login, string password)
        {
            // Generate new key pair.
            var keyPair = RsaKeyPair.GenerateKeyPair();

            // Persist private key. Not the best place to do it, but it doesn't matter.
            CredentialsManager.Store(login, keyPair.PrivateKeyXml);
            // Client method call.
            return(AppUser.GetInstance().Client.SignUp(login, name, password, keyPair.PublicKeyXml));
        }