protected virtual IAuthorizationService CreateAuthorizationService(IEnvironmentConnection environmentConnection)
{
var isLocalConnection = environmentConnection.WebServerUri != null && !string.IsNullOrEmpty(environmentConnection.WebServerUri.AbsoluteUri) && environmentConnection.WebServerUri.AbsoluteUri.ToLower().Contains(Environment.MachineName.ToLower());
return new ClientAuthorizationService(new ClientSecurityService(environmentConnection), isLocalConnection);
}