sync updates

This commit is contained in:
Luke Pulverenti
2015-02-11 22:54:31 -05:00
parent 306c5041f0
commit ea92065df0
7 changed files with 81 additions and 15 deletions

View File

@@ -129,6 +129,20 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
if (tokenInfo != null)
{
info.UserId = tokenInfo.UserId;
// TODO: Remove these checks for IsNullOrWhiteSpace
if (string.IsNullOrWhiteSpace(info.Client))
{
info.Client = tokenInfo.AppName;
}
if (string.IsNullOrWhiteSpace(info.Device))
{
info.Device = tokenInfo.DeviceName;
}
if (string.IsNullOrWhiteSpace(info.DeviceId))
{
info.DeviceId = tokenInfo.DeviceId;
}
}
httpReq.Items["OriginalAuthenticationInfo"] = tokenInfo;
}