示例#1
0
        private void AuthenticateUser(StartApplicationRequest request)
        {
            _userName = request.Username;
            if (!String.IsNullOrEmpty(request.SessionId))
            {
                IsSessionShared = request.IsSessionShared;
            }

            _session = UserAuthentication.ValidateSession(request.Username, request.SessionId);
            if (_session == null)
            {
                return;
            }

            if (_session.Principal != null)
            {
                Thread.CurrentPrincipal = Principal = _session.Principal;
            }
        }