Пример #1
0
 /// <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 = "*";
     }
 }
Пример #2
0
 public AccountController()
 {
     this.repo = UnitOfWork.Instance.AuthRepository;
 }