Example #1
0
		protected void InitCurtParam()
		{
			Act = Request.QueryString[LoginModuleParamNames.Action];
			Name = Request.QueryString[LoginModuleParamNames.Name];
			PreviousUrl = Request.QueryString[LoginModuleParamNames.PreviousUrl];
			if (string.IsNullOrEmpty(PreviousUrl))
			{
				PreviousUrl = TracerPage.PreviousUrl; 
			}
			if (!string.IsNullOrEmpty(Name))
			{
				if (List.ContainsKey(Name))
				{
					CurtParam = List[Name];
				}
				else
				{
					CurtParam = List[DefaultName];
				}
			}
			else
			{
				string acu = Request.QueryString[LoginModuleParamNames.AuthCodeUrl];
				string sp = Request.QueryString[LoginModuleParamNames.SigninProcessor];
				string sr = Request.QueryString[LoginModuleParamNames.SuccessRedirect];
				string or = Request.QueryString[LoginModuleParamNames.SignoutRedirect];
				string fu = Request.QueryString[LoginModuleParamNames.SigninFormUrl];
				CurtParam = new LoginModuleParam(acu, sp, sr, or, fu);

			}
			CurtParam.PreviousUrl = PreviousUrl;
		}
Example #2
0
		protected static void ReadConfigFile()
		{
			string name, authPath, proxyPage;//, authCodePage;
			XReader xr = Fmk.UIConfig;
			xr = xr["configuration"]["authentication"];
			DefaultName = xr["$DefaultItem"].Value;
			if (List != null)
			{
				List.Clear();
			}
			else
			{
				List = new Dictionary<string, LoginModuleParam>();
			}
			foreach (XReader child in xr.Children)
			{
				authPath = Fmk.UiBaseUrl + child["$RelativeUrl"].Value;
				proxyPage = authPath + child["$ProxyPage"].Value;
				//authCodePage = authPath + xr["$AuthCodePage"].Value;
				name = child["$Name"].Value;
				LoginModuleParam lmp = new LoginModuleParam(proxyPage, child["$Processor"].Value, child["$SuccessRedirect"].Value, child["$SignoutRedirect"].Value, child["$SigninFormUrl"].Value);
				List.Add(name, lmp);
			}
		}