public J2EEPrincipal(HttpServletRequest req) { _request = req; string authType = req.getAuthType(); if (authType == null) authType = ""; _identity = new GenericIdentity(req.getRemoteUser(), authType); }
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); } }
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()); }
public override string GetRemoteUser() { return(_HttpServletRequest.getRemoteUser()); }