Esempio n. 1
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 public OrgFactory()
 {
     this.config = ModuleConfiguration.ModuleConfig;
     this.log = new LogContainer(this.config);
     this.poxy = new OrgFactoryServicePoxy();
     this.poxy.Url = this.config.OrgFactoryServiceURL;
 }
 /// <summary>
 /// 构造函数。
 /// </summary>
 public AuthenticationProvider()
 {
     this.config = ModuleConfiguration.ModuleConfig;
     this.log = new LogContainer(this.config);
     this.poxy = new AuthenticationServicePoxy();
     this.poxy.Url = this.config.AuthenticationProviderURL;
 }
        /// <summary>
        /// 构造函数。
        /// </summary>
        public SecurityPermissionFacotry()
        {
            this.config = ModuleConfiguration.ModuleConfig;
            this.log = new LogContainer(this.config);

            this.service = new SecurityPermissionFactoryServicePoxy();
            this.service.Url = this.config.SecurityPermissionUrl;
        }
Esempio n. 4
0
        /// <summary>
        /// 构造函数。
        /// </summary>
        public SecurityFactory()
        {
            this.config = ModuleConfiguration.ModuleConfig;
            this.log = new LogContainer(this.config);

            this.service = new SecurityFactoryProviderServicePoxy();
            this.service.Url = this.config.SecurityFactoryUrl;
        }
        /// <summary>
        /// 构造函数。
        /// </summary>
        public AuthenticationProviderFactory(SSOServiceModuleConfiguration moduleConfig)
        {
            try
            {
                this.config = moduleConfig;
                this.log = new LogContainer(moduleConfig);

                this.authenticationProvider = this.config.AuthenticationProvideAssembly;
                this.authorizedToVerify = this.config.AuthorizedToVerifyAssembly;
                this.ssoTicketDbProvider = this.config.SSOTicketDbProviderAssembly;
            }
            catch (Exception e)
            {
                this.log.CreateErrorLog(e.Message);
            }
        }
        /// <summary>
        /// 构造函数。
        /// </summary>
        public PermissionModule()
        {
            this.authenticateUserModules = Cache[typeof(AuthenticateUserModulesProvider)] as AuthenticateUserModulesProvider;
            if (this.authenticateUserModules == null)
            {
                ISecurityPermissionFactory permissionFactory = ModuleConfiguration.ModuleConfigurationInstance.SecurityPermissionFactory;
                if (permissionFactory != null)
                {
                    this.authenticateUserModules = new AuthenticateUserModulesProvider(permissionFactory);
                    Cache[typeof(AuthenticateUserModulesProvider)] = this.authenticateUserModules;
                }
            }

            this.log = Cache[typeof(LogContainer)] as LogContainer;
            if (this.log == null)
            {
                this.log = new LogContainer(ModuleConfiguration.ModuleConfigurationInstance);
                Cache[typeof(LogContainer)] = this.log;
            }
        }
Esempio n. 7
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 public Service()
 {
     this.credentials = new CredentialSoapHeader();
     this.log = new LogContainer(SSOServiceModuleConfiguration.ModuleConfig);
     this.factory = new AuthenticationProviderFactory(SSOServiceModuleConfiguration.ModuleConfig);
 }
Esempio n. 8
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 private FlowService()
 {
     this.log = new LogContainer(ModuleConfiguration.ModuleConfig);
     this.poxy = new FlowServicePoxy();
     this.poxy.Url = ModuleConfiguration.ModuleConfig.FlowServiceURL;
 }
Esempio n. 9
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 public SSOClientModule()
 {
     this.config = SSOClientModuleConfiguration.ModuleConfig;
     this.log = new LogContainer(this.config);
 }
 /// <summary>
 /// 构造函数。
 /// </summary>
 public ModuleConfiguration()
     : base("SecurityClient")
 {
     this.log = new LogContainer(this);
 }