public void Log(string authenticationCookie, string user, string workstation, DateTime date, string details, string userData) { string userName = string.Empty; XmlDocument extra = null; userName = AuthHandler.Authenticate(authenticationCookie, impersonater: true); if (user == "?") { user = userName; } if (workstation == "?") { workstation = GetRemoteIP(); } if (!string.IsNullOrEmpty(userData)) { try { extra = new XmlDocument(); extra.LoadXml(userData); } catch { } } _AuditLogAddin.Log(userName, workstation, date, details, extra); }
public UserPermissions[] GetUserAccess(string authenticationCookie, string user) { string userName; userName = AuthHandler.Authenticate(authenticationCookie); if (userName != user) { AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanManageAccessRight); } return(_addin.GetUserAccess(user)); }
public Task <string> VerifyConnection(string authenticationCookie, RemoteConnection server, ClientConnection client) { AuthHandler.Authenticate(authenticationCookie); return(Task.Factory.StartNew(() => _pacsquery.VerifyConnection(server as PACSConnection, client))); }