internal static string AddAuthenticationInfo(this HttpHeaders headers, ISecurity securityService, AuthenticationInfo authInfo)
 {
     return(headers.AddAuthenticationInfoValue(securityService.GenerateTicket(authInfo, HttpContext.Current.Request.GetUserUniqueID())));
 }
        internal static void AddAuthenticationInfo(this HttpRequestMessage request, ISecurity securityService, AuthenticationInfo authInfo)
        {
            string ticket = securityService.GenerateTicket(authInfo, request.GetUserUniqueID());

            request.Properties[SettingsManager.AuthenticationHeaderKey] = ticket;
        }