示例#1
0
 public AccountController(
     ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     this.UserManager = userManager;
     this.AccessTokenFormat = accessTokenFormat;
 }
示例#2
0
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat, IJobMatcherData data)
     : base(data)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
        public AccountController(UserManager<IdentityUser> userManager,
            ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
        {
            UserManager = userManager;
			//UserManager.UserValidator = new UserValidator<IdentityUser>( UserManager ) { AllowOnlyAlphanumericUserNames = false };
            AccessTokenFormat = accessTokenFormat;
        }
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
                 : base(new CFHData())
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="languageServices"></param>
 /// <param name="userProfileServices"></param>
 /// <param name="geoLocationServices"></param>
 public UserProfileController(ILanguagesService languageServices, IUsersService userProfileServices, IGeoLocationService geoLocationServices)
 {
     _languageServices = languageServices;
     _userProfileServices = userProfileServices;
     _geoLocationServices = geoLocationServices;
     AccessTokenFormat = Startup.OAuthOptions.AccessTokenFormat;
 }
 public LoginAccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     //  AccessTokenFormat = accessTokenFormat;
     AccessTokenFormat = accessTokenFormat;
 }
示例#7
0
 public AccountController(ApplicationUserManager userManager, ApplicationRoleManager roleManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     RoleManager = roleManager;
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     __loggingResourceName = "Account";
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat,
     ICodeChestData data)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     this.data = data;            
 }
示例#10
0
 private AccountController(UserManager<AppUser> userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat,
     IAuthenticationService iAuthenticationService)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     _iAuthenticationService = iAuthenticationService;
 }
示例#11
0
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat, IAchievementDb achievementDb, IAchievementCalculationManager achievementCalculationManager)
 {
     _achievementDb = achievementDb;
     _achievementCalculationManager = achievementCalculationManager;
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(ApplicationUserManager userManager,
     ApplicationTenantManager tenantManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     TenantManager = tenantManager;
     AccessTokenFormat = accessTokenFormat;
 }
示例#13
0
 /// <summary>
 /// ctor
 /// </summary>
 public AccountController(IUnitOfWork unitofwork, 
                          UserManager<UserProfile> userManager,
                          ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     this.UnitOfwork = unitofwork;
     this.UserManager = userManager;
     this.AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(
     IConfigurationService configuration,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat
     )
 {
     Configuration = configuration;
     AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(MyUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     //UserManager.PasswordHasher = new CustomPassword();
     
     //password validator
     AccessTokenFormat = accessTokenFormat;
 }
 public AuthenticationTokenReceiveContext(
     [NotNull] HttpContext context,
     [NotNull] ISecureDataFormat<AuthenticationTicket> secureDataFormat,
     [NotNull] string token)
     : base(context)
 {
     _secureDataFormat = secureDataFormat;
     Token = token;
 }
示例#17
0
 public UsersController(
     ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat,
     ITripExchangeData data)
     : base(data)
 {
     this.UserManager = userManager;
     this.AccessTokenFormat = accessTokenFormat;
 }
示例#18
0
    /// <summary>
    ///   ctor
    /// </summary>
    public AccountController(IUnitOfWork unitOfWork, ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
    {
      //_roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(new EnergyNetworkDbContext()));
      //_roleManager = HttpContext.Current.GetOwinContext().
      //  Get<ApplicationRoleManager>();

      _unitOfWork = unitOfWork;
      AccessTokenFormat = accessTokenFormat;
    }
 public AuthenticationTokenCreateContext(
     [NotNull] HttpContext context,
     [NotNull] ISecureDataFormat<AuthenticationTicket> secureDataFormat,
     [NotNull] AuthenticationTicket ticket)
     : base(context)
 {
     _secureDataFormat = secureDataFormat;
     Ticket = ticket;
 }
 public AccountApiController(ISecureDataFormat<AuthenticationTicket> accessTokenFormat, IAccountProvider accountManager, IAuthenticationManager authenticationManager, AppUserManager appUserManager)
 {
     AccessTokenFormat = accessTokenFormat;
     AccountManager = accountManager;
     AccountManager.AuthenticationManager = authenticationManager;
     AccountManager.UserManager = appUserManager;
     AccountManager.UrlManager = Url;
     AccountManager.StartupPublicClientId = Startup.PublicClientId;
 }
        public AccountController(ApplicationUserManager userManager,
            ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
        {
            var context = new DispatcherContext();
            db = context;
            idContext = context;

            UserManager = userManager;
            AccessTokenFormat = accessTokenFormat;
        }
示例#22
0
 public AccountController(UserManager<AppUser> userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat, IEmailSender iEmailSender,
     IAuthenticationService iAuthenticationService, IUnitOfWork iUnitOfWork)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     _iEmailSender = iEmailSender;
     _iAuthenticationService = iAuthenticationService;
     _iUnitOfWork = iUnitOfWork;
 }
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     _db = new ApplicationDbContext();
     _mngr = new UserManager(_db);
     _helper = new HttpResponseHelper<UserInfoVM>(this);
     _errHelper = new HttpResponseHelper<HttpError>(this);
 }
 public AuthorizationController(
     IServerOptions serverOptions,
     IHaloUserManager userManager,
     IUserBaseDataRepository userBaseDataRepository,
     ISecureDataFormat<AuthenticationTicket> secureDataFormat)
 {
     _serverOptions = serverOptions;
     _userManager = userManager;
     _userBaseDataRepository = userBaseDataRepository;
     _secureDataFormat = secureDataFormat;
 }
        public AuthenticationTokenReceiveContext(HttpContext context, ISecureDataFormat<AuthenticationTicket> secureDataFormat, string token)
            : base(context)
        {
            if (secureDataFormat == null)
                throw new ArgumentNullException(nameof(secureDataFormat));

            if (token == null)
                throw new ArgumentNullException(nameof(token));

            _secureDataFormat = secureDataFormat;

            Token = token;
        }
        public AuthenticationTokenCreateContext(HttpContext context, ISecureDataFormat<AuthenticationTicket> secureDataFormat, AuthenticationTicket ticket)
            : base(context)
        {
            if (secureDataFormat == null)
                throw new ArgumentNullException(nameof(secureDataFormat));

            if (ticket == null)
                throw new ArgumentNullException(nameof(ticket));

            _secureDataFormat = secureDataFormat;

            Ticket = ticket;
        }
示例#27
0
 public AccountController(UserManager<TaskUser> userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     //IdentityResult result = null;
     //if (userManager.FindByName("dbeech") == null)
     //    result = userManager.Create(new MisconnexUser { 
     //        UserType = Model.Enums.UserType.Management,
     //        Email = "*****@*****.**",
     //        UserName = "******"
     //    }, "DavidBeech23");
     //var x = result.Succeeded;
 }
 public AuthenticationTokenReceiveContext(
     IOwinContext context,
     ISecureDataFormat<AuthenticationTicket> secureDataFormat,
     string token) : base(context)
 {
     if (secureDataFormat == null)
     {
         throw new ArgumentNullException("secureDataFormat");
     }
     if (token == null)
     {
         throw new ArgumentNullException("token");
     }
     _secureDataFormat = secureDataFormat;
     Token = token;
 }
示例#29
0
 public AccountController(ApplicationUserManager userManager,
                          ISecureDataFormat <AuthenticationTicket> accessTokenFormat)
 {
     UserManager       = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
 public AccountController(UserManager<IdentityUser> userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
示例#31
0
 public AccountController(
     ISecureDataFormat <AuthenticationTicket> accessTokenFormat)
 {
     AccessTokenFormat = accessTokenFormat;
 }
 public AuthenticationTokenCreateContext(
     IOwinContext context,
     ISecureDataFormat<AuthenticationTicket> secureDataFormat,
     AuthenticationTicket ticket)
     : base(context)
 {
     if (secureDataFormat == null)
     {
         throw new ArgumentNullException("secureDataFormat");
     }
     if (ticket == null)
     {
         throw new ArgumentNullException("ticket");
     }
     _secureDataFormat = secureDataFormat;
     Ticket = ticket;
 }