public void BuildHeaders() { var clientKeySecretFac = EncryptUtil.GenNewSalt(); _restService.AddHttpHeader("clientkeySecretFac", Convert.ToBase64String(clientKeySecretFac)); _restService.AddHttpHeader("clientkey", EncryptUtil.HashString(WebApiCred.AuthClientKey, clientKeySecretFac)); }
public void BuildHeaders() { TokenPersistanceService tokenPersistanceSerivce = new TokenPersistanceService(); string token = tokenPersistanceSerivce.GetToken(WebApiCred.KeyChainTokenKey); _restService.AddHttpHeader("tokenAuth", token); }