/// <summary> /// 构造函数 /// </summary> /// <param name="authRepository"></param> public SimpleOAuthAuthorizationServerProvider(DAL.AuthRepository authRepository) { // TODO: Complete member initialization this.authRepository = authRepository; this.userClientAuth = Convert.ToBoolean(ConfigurationManager.AppSettings["useClientAuthentication"]); this.AnoymouseAllowedOrigins = ConfigurationManager.AppSettings["AnoymouseAllowedOrigins"]; if (string.IsNullOrWhiteSpace(AnoymouseAllowedOrigins)) { this.AnoymouseAllowedOrigins = "*"; } }
public AccountController() { this.repo = UnitOfWork.Instance.AuthRepository; }