From 515412f8632ea44be97153be6c918d3df26a98c9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 30 Jun 2016 21:40:44 -0400 Subject: [PATCH] Added device identifier as header to api calls --- src/App/Utilities/TokenHttpRequestMessage.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App/Utilities/TokenHttpRequestMessage.cs b/src/App/Utilities/TokenHttpRequestMessage.cs index f5e9501b0..c322df397 100644 --- a/src/App/Utilities/TokenHttpRequestMessage.cs +++ b/src/App/Utilities/TokenHttpRequestMessage.cs @@ -11,7 +11,12 @@ namespace Bit.App public TokenHttpRequestMessage() { var authService = Resolver.Resolve(); + var appIdService = Resolver.Resolve(); Headers.Add("Authorization", $"Bearer {authService.Token}"); + if(!string.IsNullOrWhiteSpace(appIdService.AppId)) + { + Headers.Add("DeviceIdentifier", appIdService.AppId); + } } public TokenHttpRequestMessage(object requestObject)