Ejemplo n.º 1
0
 public AuthenticateOrchestrator(
     ILogger <AuthenticateOrchestrator> logger,
     IEventNotificationService eventNotificationService,
     IOneTimeCodeService oneTimeCodeService,
     IMessageService messageService,
     IUserStore userStore,
     PasswordlessLoginOptions passwordlessLoginOptions,
     IPasswordService passwordService,
     IUrlService urlService,
     IHttpContextAccessor httpContextAccessor,
     ITrustedBrowserStore trustedBrowserStore,
     ISignInService signInService,
     IApplicationService applicationService,
     IApplicationLocalizer localizer)
 {
     _logger = logger;
     _eventNotificationService = eventNotificationService;
     _oneTimeCodeService       = oneTimeCodeService;
     _userStore           = userStore;
     _messageService      = messageService;
     _passwordService     = passwordService;
     _options             = passwordlessLoginOptions;
     _urlService          = urlService;
     _httpContext         = httpContextAccessor.HttpContext;
     _trustedBrowserStore = trustedBrowserStore;
     _signInService       = signInService;
     _applicationService  = applicationService;
     _localizer           = localizer;
 }
Ejemplo n.º 2
0
 public AccountController(
     IPasswordService passwordService,
     PasswordlessLoginOptions options
     )
 {
     _passwordService = passwordService;
     _options         = options;
 }
        public static PasswordlessLoginBuilder AddPasswordlessLogin(this IServiceCollection services, IConfiguration configuration)
        {
            var passwordlessLoginOptions = new PasswordlessLoginOptions();

            configuration.Bind(passwordlessLoginOptions);
            var builder = new PasswordlessLoginBuilder(services, passwordlessLoginOptions);

            return(builder.AddPasswordlessLogin());
        }
 public PasswordlessUrlService(
     IUrlHelper urlHelper,
     IHttpContextAccessor httpContextAccessor,
     PasswordlessLoginOptions passwordlessLoginOptions
     )
 {
     _urlHelper   = urlHelper;
     _httpContext = httpContextAccessor.HttpContext;
     _urls        = passwordlessLoginOptions.Urls;
 }
        public static PasswordlessLoginBuilder AddPasswordlessLogin(this IServiceCollection services, Action <PasswordlessLoginOptions> optionsAction = null)
        {
            var passwordlessLoginOptions = new PasswordlessLoginOptions();

            optionsAction?.Invoke(passwordlessLoginOptions);

            var builder = new PasswordlessLoginBuilder(services, passwordlessLoginOptions);

            return(builder.AddPasswordlessLogin());
        }
Ejemplo n.º 6
0
 public EmailTemplateService(
     ILogger <EmailTemplateService> logger,
     IEmailService emailService,
     EmailTemplates templates,
     PasswordlessLoginOptions options)
 {
     _logger       = logger;
     _templates    = templates;
     _emailService = emailService;
     _options      = options;
 }
Ejemplo n.º 7
0
 public OneTimeCodeService(
     IApplicationLocalizer localizer,
     ILogger <OneTimeCodeService> logger,
     IOneTimeCodeStore oneTimeCodeStore,
     PasswordlessLoginOptions passwordlessLoginOptions
     )
 {
     _localizer        = localizer;
     _logger           = logger;
     _oneTimeCodeStore = oneTimeCodeStore;
     _options          = passwordlessLoginOptions;
 }
 public DefaultPasswordService(
     IApplicationLocalizer localizer,
     ILogger <DefaultPasswordService> logger,
     IPasswordHashService passwordHashService,
     IPasswordHashStore passwordHashStore,
     PasswordlessLoginOptions passwordlessLoginOptions
     )
 {
     _localizer                = localizer;
     _logger                   = logger;
     _passwordHashService      = passwordHashService;
     _passwordHashStore        = passwordHashStore;
     _passwordlessLoginOptions = passwordlessLoginOptions;
 }
 public AccountApiController(
     IEventNotificationService eventNotificationService,
     UserOrchestrator userOrchestrator,
     IPasswordService passwordService,
     IMessageService messageService,
     PasswordlessLoginOptions passwordlessLoginOptions,
     IApplicationService applicationService
     )
 {
     _eventNotificationService = eventNotificationService;
     _userOrchestrator         = userOrchestrator;
     _passwordService          = passwordService;
     _messageService           = messageService;
     _passwordlessLoginOptions = passwordlessLoginOptions;
     _applicationService       = applicationService;
 }
Ejemplo n.º 10
0
 public MessageService(
     IApplicationLocalizer localizer,
     ILogger <MessageService> logger,
     IEmailTemplateService emailTemplateService,
     IUrlService urlService,
     PasswordlessLoginOptions passwordlessLoginOptions,
     IApplicationService applicationService
     )
 {
     _localizer                = localizer;
     _logger                   = logger;
     _emailTemplateService     = emailTemplateService;
     _urlService               = urlService;
     _passwordlessLoginOptions = passwordlessLoginOptions;
     _applicationService       = applicationService;
 }
Ejemplo n.º 11
0
 public UserOrchestrator(
     ILogger <UserOrchestrator> logger,
     IEventNotificationService eventNotificationService,
     IHttpContextAccessor httpContextAccessor,
     IUserStore userStore,
     IPasswordService passwordService,
     IOneTimeCodeService oneTimeCodeService,
     IMessageService messageService,
     PasswordlessLoginOptions passwordlessLoginOptions,
     IApplicationLocalizer localizer)
 {
     _logger = logger;
     _eventNotificationService = eventNotificationService;
     _httpContext              = httpContextAccessor.HttpContext;
     _userStore                = userStore;
     _passwordService          = passwordService;
     _oneTimeCodeService       = oneTimeCodeService;
     _messageService           = messageService;
     _passwordlessLoginOptions = passwordlessLoginOptions;
     _localizer                = localizer;
 }
 public ReconfigureCookieOptions(PasswordlessLoginOptions idProviderConfig)
 {
     _passwordlessLoginOptions = idProviderConfig;
 }