Example #1
0
 private void context_AuthenticateRequest(object sender, EventArgs e)
 {
     if (OpenIDAuthenticateDirSettings.GetConfig().PageNeedAuthenticate())
     {
         DoAuthentication();
     }
 }
		/// <summary>
		/// 获取配置认证目录信息
		/// </summary>
		/// <returns></returns>
		public static OpenIDAuthenticateDirSettings GetConfig()
		{
			OpenIDAuthenticateDirSettings settings = (OpenIDAuthenticateDirSettings)ConfigurationBroker.GetSection("openIDAuthenticateDirSettings");

			if (settings == null)
				settings = new OpenIDAuthenticateDirSettings();

			return settings;
		}
Example #3
0
        /// <summary>
        /// 获取配置认证目录信息
        /// </summary>
        /// <returns></returns>
        public static OpenIDAuthenticateDirSettings GetConfig()
        {
            OpenIDAuthenticateDirSettings settings = (OpenIDAuthenticateDirSettings)ConfigurationBroker.GetSection("openIDAuthenticateDirSettings");

            if (settings == null)
            {
                settings = new OpenIDAuthenticateDirSettings();
            }

            return(settings);
        }