Exemplo n.º 1
0
        public void BuildHeaders()
        {
            var clientKeySecretFac = EncryptUtil.GenNewSalt();

            _restService.AddHttpHeader("clientkeySecretFac", Convert.ToBase64String(clientKeySecretFac));
            _restService.AddHttpHeader("clientkey", EncryptUtil.HashString(WebApiCred.AuthClientKey,
                                                                           clientKeySecretFac));
        }
Exemplo n.º 2
0
        public void BuildHeaders()
        {
            TokenPersistanceService tokenPersistanceSerivce = new TokenPersistanceService();
            string token = tokenPersistanceSerivce.GetToken(WebApiCred.KeyChainTokenKey);

            _restService.AddHttpHeader("tokenAuth",
                                       token);
        }