public SsoAuthImpl(System.Web.UI.Page page) { IMP_METHOD = ConfigurationManager.AppSettings["impersonation_method"]; if (IMP_METHOD == null) { throw new Exception("key=impersonation_method missing from web.config"); } this.page = page; if (IMP_METHOD.Equals("header_playback")) { Common.debug("instantiate ImpHeader"); imp = new ImpHeader(); return; } if (IMP_METHOD.Equals("siteminder")) { Common.debug("instantiate ImpSiteMinder"); imp = new ImpSM(); return; } Common.debug("missing impersonation provider"); }
public Impersonator(IImpersonation impersonation) { _impersonation = impersonation; }