示例#1
0
 public AccountController()
 {
     novell         = new NovelleDirectory.NovelleDirectory();
     factory        = new DbContextFactory();
     context        = new ApplicationDbContext();
     identityHelper = new IdentityHelper();
     request        = new Request();
 }
示例#2
0
 public AccountController(IDbContextFactory factory, IApplicationDbContext context, IRequest request, IIdentityHelper identityHelper, INovelleDirectory novell, ApplicationUserManager userManager)
 {
     this.novell         = novell;
     this.factory        = factory;
     this.UserManager    = userManager;
     this.context        = context;
     this.identityHelper = identityHelper;
     this.request        = request;
 }
示例#3
0
        //если вернемся к теме логгирования
        //инициализация
        //private static Logger logger = LogManager.GetCurrentClassLogger();
        //лог
        //logger.Log(LogLevel.Info, "Credentials correct in Novell", context.UserName, context.Password);



        /// <summary>
        /// Ctor of oAuth provider
        /// </summary>
        /// <param name="publicClientId"></param>
        public ApplicationOAuthProvider(string publicClientId)
        {
            if (publicClientId == null)
            {
                throw new ArgumentNullException("publicClientId");
            }
            _publicClientId = publicClientId;
            novell          = new NovelleDirectory.NovelleDirectory();
            novellGroupWise = new NovellGroupWise();
        }
示例#4
0
        public AccountController(IDbContextFactory factory, IIdentityHelper identityHelper, IRequest request)
        {
            this.factory        = factory;
            this.identityHelper = identityHelper;
            this.request        = request;

            context        = new ApplicationDbContext();
            novell         = new NovelleDirectory.NovelleDirectory();
            identityHelper = new IdentityHelper();
        }
示例#5
0
        public AccountController(IDbContextFactory factory, IApplicationDbContext context, IIdentityHelper identityHelper)
        {
            this.factory        = factory;
            this.identityHelper = identityHelper;
            this.context        = context;

            request        = new Request();
            novell         = new NovelleDirectory.NovelleDirectory();
            identityHelper = new IdentityHelper();
        }
示例#6
0
        public AccountController(ApplicationUserManager userManager,
                                 ISecureDataFormat <AuthenticationTicket> accessTokenFormat)
        {
            this.UserManager       = userManager;
            this.AccessTokenFormat = accessTokenFormat;

            novell         = new NovelleDirectory.NovelleDirectory();
            factory        = new DbContextFactory();
            context        = new ApplicationDbContext();
            identityHelper = new IdentityHelper();
            request        = new Request();
        }
示例#7
0
 public ApplicationOAuthProvider(INovelleDirectory novell, INovellGroupWise novellGroupWise)
 {
     this.novell          = novell;
     this.novellGroupWise = novellGroupWise;
 }