|
|
@ -34,8 +34,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
var session = _sessionManager.GetSession(authorization.DeviceId, authorization.Client, authorization.Version);
|
|
|
|
var user = string.IsNullOrWhiteSpace(authorization.UserId) ? null : _userManager.GetUserById(authorization.UserId);
|
|
|
|
return Task.FromResult(session);
|
|
|
|
return _sessionManager.LogSessionActivity(authorization.Client, authorization.Version, authorization.DeviceId, authorization.Device, requestContext.RemoteIp, user);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private AuthenticationInfo GetTokenInfo(IServiceRequest request)
|
|
|
|
private AuthenticationInfo GetTokenInfo(IServiceRequest request)
|
|
|
|