Example #1
0
 public ExternalAgentLoginsModel(
     IAgentTracker agentTracker,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager)
 {
     _agentTracker  = agentTracker;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
Example #2
0
 public LoginModel(
     IAgentTracker agentTracker,
     IIdentityServerInteractionService interaction,
     SignInManager <ApplicationUser> signInManager,
     ILogger <LoginModel> logger)
 {
     _agentTracker  = agentTracker;
     _interaction   = interaction;
     _signInManager = signInManager;
     _logger        = logger;
 }
Example #3
0
 public AppClaimsPrincipalFactory(
     IAgentTracker agentTracker,
     IChallengeQuestionsTracker challengeQuestionsTracker,
     IHttpContextAccessor httpContextAccessor,
     UserManager <TUser> userManager,
     RoleManager <TRole> roleManager,
     IOptions <IdentityOptions> optionsAccessor
     )
     : base(userManager, roleManager, optionsAccessor)
 {
     _agentTracker = agentTracker;
     _challengeQuestionsTracker = challengeQuestionsTracker;
     _httpContextAccessor       = httpContextAccessor;
 }
Example #4
0
        /// <summary>
        /// Creates a new instance of <see cref="RewriteMiddleware"/>
        /// </summary>
        /// <param name="next">The delegate representing the next middleware in the request pipeline.</param>
        /// <param name="hostingEnvironment">The Hosting Environment.</param>
        /// <param name="loggerFactory">The Logger Factory.</param>
        /// <param name="options">The middleware options, containing the rules to apply.</param>
        public PageAuthMiddleware(
            RequestDelegate next,
            IHostingEnvironment hostingEnvironment,
            ILoggerFactory loggerFactory,
            IAgentTracker agentTracker)
        {
            if (next == null)
            {
                throw new ArgumentNullException(nameof(next));
            }

            _agentTracker = agentTracker;


            _next = next;

            _logger = loggerFactory.CreateLogger <RewriteMiddleware>();
        }