Esempio n. 1
0
		public J2EEPrincipal(HttpServletRequest req)
		{
			_request = req;
			string authType = req.getAuthType();
			if (authType == null)
				authType = "";
			_identity = new GenericIdentity(req.getRemoteUser(), authType);
		}
Esempio n. 2
0
        void OnAuthenticateRequest(object sender, EventArgs args)
        {
            HttpApplication    app = (HttpApplication)sender;
            HttpServletRequest req = app.Context.Request.ServletWorkerRequest.ServletRequest;

            if (req.getRemoteUser() != null)
            {
                app.Context.User = new J2EEPrincipal(req);
            }
        }
Esempio n. 3
0
        public J2EEPrincipal(HttpServletRequest req)
        {
            _request = req;
            string authType = req.getAuthType();

            if (authType == null)
            {
                authType = "";
            }
            _identity = new GenericIdentity(req.getRemoteUser(), authType);
        }
 public override string getRemoteUser()
 {
     return(_request.getRemoteUser());
 }
Esempio n. 5
0
 public override string GetRemoteUser()
 {
     return(_HttpServletRequest.getRemoteUser());
 }