internal override void Authenticate([NotNull] ReplicatorOptionsDictionary options)
        {
            Debug.Assert(options != null);

            var authDict = new AuthOptionsDictionary
            {
                Username = Username,
                Password = Password,
                Type     = AuthType.HttpBasic
            };

            options.Auth = authDict;
        }
Exemplo n.º 2
0
        internal override void Authenticate([NotNull] ReplicatorOptionsDictionary options)
        {
            Debug.Assert(options != null);

            var authDict = new AuthOptionsDictionary
            {
                Username = Username,
                Type     = AuthType.HttpBasic
            };

            // TODO string Password will be deprecated and replaced with byte array password
            if (String.IsNullOrEmpty(Password))
            {
                authDict.PasswordSecureString = PasswordSecureString;
            }
            else
            {
                authDict.Password = Password;
            }

            options.Auth = authDict;
        }