public VerifyCodeViewModel(ISignInService signInService, IUserInfoService userInfoService)
        {
            SignInService   = signInService;
            UserInfoService = userInfoService;

            VerifyCodeCommand = new MvxAsyncCommand(VerifyCodeAsync);
        }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
        public AccountController(
            IUserService userService,
            ISignInService signInService,
            IEmailSenderService emailSender,
            ILogger <AccountController> logger)
        {
            if (userService is null)
            {
                throw new ArgumentNullException(nameof(userService));
            }

            if (signInService is null)
            {
                throw new ArgumentNullException(nameof(signInService));
            }

            if (emailSender is null)
            {
                throw new ArgumentNullException(nameof(emailSender));
            }

            this.userService   = userService;
            this.signInService = signInService;
            this.emailSender   = emailSender;
            this.logger        = logger;
        }
Exemplo n.º 4
0
        public LoginViewModel(IPageSwitchingService pageSwitchingService, IEventAggregator eventAggregator, IAudioStationSession audioStationSession, IOpenSynoSettings synoSettings, ISignInService signInService, IPlaybackService playbackService)
        {
            if (pageSwitchingService == null) throw new ArgumentNullException("pageSwitchingService");
            if (eventAggregator == null) throw new ArgumentNullException("eventAggregator");
            if (audioStationSession == null) throw new ArgumentNullException("audioStationSession");
            SignInCommand = new DelegateCommand(OnSignIn);
            _pageSwitchingService = pageSwitchingService;
            _eventAggregator = eventAggregator;
            _audioStationSession = audioStationSession;
            _synoSettings = synoSettings;
            _signInService = signInService;
            _signInService.SignInCompleted += OnSignInCompleted;

            // Unregister the registered events to make sure we don't execute the event handler twice in case of exceptions
            _signInService.CheckTokenValidityCompleted += (o, e) =>
            {
                if (e.Error != null)
                {
                    _signInService.CheckTokenValidityCompleted -= OnCheckTokenValidityCompleted;
                }
            };

            _playbackService = playbackService;
            UserName = _synoSettings.UserName;
            UseSsl = _synoSettings.UseSsl;
            Password = _synoSettings.Password;
            Host = _synoSettings.Host;
            Port = _synoSettings.Port;
        }
 public SetPasswordModel(
     IUserService userService,
     ISignInService signInService)
 {
     _userService   = userService;
     _signInService = signInService;
 }
Exemplo n.º 6
0
 public UsersService(PaintStoreContext ctx, IPostsService postsService, IFollowersService followersService, ISignInService signInService)
 {
     _paintStoreContext = ctx;
     _postsService      = postsService;
     _followersService  = followersService;
     _signInService     = signInService;
 }
Exemplo n.º 7
0
 public LogoutController(
     ISignInService signInService,
     ILogger <LogoutController> logger)
 {
     this._signInService = signInService;
     this._logger        = logger;
 }
 public AccountController(IUserService userManager, ISignInService signInManager)
 {
     Guard.WhenArgument(userManager, "userManager").IsNull().Throw();
     Guard.WhenArgument(signInManager, "signInManager").IsNull().Throw();
     this.userManager   = userManager;
     this.signInManager = signInManager;
 }
Exemplo n.º 9
0
 /// <inheritdoc />
 public AuthorizationController(
     IJwtTokensService jwtTokenServices, ISignInService signInService, IUserService userService)
 {
     _jwtTokenServices = jwtTokenServices;
     _signInService    = signInService;
     _userService      = userService;
 }
Exemplo n.º 10
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            ActivityInstance = this;
            progress         = new ProgressDialogHelper(this);
            signInService    = new SignInService();
            bitmapService    = new BitmapOperationService();
            appSettings      = SharedPreferencesHelper.GetAppSettings(this);
            if (!appSettings.ChatDisabled)
            {
                this.chatHubClientService = ChatHubClientService.GetServiceInstance(bearerToken);
            }
            this.messagesService = new MessagesService(bearerToken);
            SetContentView(Resource.Layout.ConversationActivity);
            SetupViews(savedInstanceState);
            SetupConversationToolbar();
            pageNumber = 0;
            GetExtras();
            player = new MediaPlayer();
            player.SetDataSource(this, Android.Net.Uri.Parse("android.resource://" + this.PackageName + "/raw/" + Resource.Raw.message_sound));
            player.Prepare();
            progress.ShowProgressDialog("Trwa pobieranie wiadomoœci...");
            await SetupIntelocutorInfo();
            await GetAndDisplayMesages(savedInstanceState);

            coversationsLayoutWrapper.Visibility = ViewStates.Visible;
            progress.CloseProgressDialog();
        }
Exemplo n.º 11
0
 public IndexModel(
     IUserService userService,
     ISignInService signInService)
 {
     _userService   = userService;
     _signInService = signInService;
 }
Exemplo n.º 12
0
 public LoginModel(ISignInService signInService,
                   IOptions <KerykeionCmsOptions> options,
                   KerykeionTranslationsService translationsService) : base(translationsService)
 {
     _signInService = signInService;
     _options       = options.Value;
 }
Exemplo n.º 13
0
 public RegisterModel(IIdentityService identityService, ISignInService signInService, IEmailSender emailSender, ILogger <RegisterModel> logger)
 {
     _logger          = logger;
     _signInService   = signInService;
     _identityService = identityService;
     _emailSender     = emailSender;
 }
Exemplo n.º 14
0
 public ReviewController(ILogger <EmployerController> logger, IMapper mapper, ISignUpService signUpService, ISignInService signInService)
 {
     _logger        = logger;
     _mapper        = mapper;
     _signUpService = signUpService;
     _signInService = signInService;
 }
Exemplo n.º 15
0
 public SignInHubMethods(
     IHubContext <SignInHub> hubContext,
     IPlayerConnectionRepository <SignInHub> playerConnections,
     ISignInService signInService
     ) : base(hubContext, playerConnections)
 {
     _signInService = signInService;
 }
Exemplo n.º 16
0
 public LoginModel(
     IExternalSignInService externalSignInService,
     ISignInService signInService,
     IServiceProvider sp)
 {
     _signInService         = signInService;
     _externalSignInService = externalSignInService;
 }
Exemplo n.º 17
0
 public ServiceLinksManager(AppDbContext context, QuestradeClientFactory clientFactory, ISignInService signInService, ILogger <ServiceLinksManager> logger, AccountsManager accountsManager)
 {
     m_context         = context;
     m_clientFactory   = clientFactory;
     m_signInService   = signInService;
     m_logger          = logger;
     m_accountsManager = accountsManager;
 }
Exemplo n.º 18
0
        public Main(ILogger <Main> logger, ISignInService signInService, ITaskRunner taskRunner)
        {
            InitializeComponent();

            _logger        = logger;
            _signInService = signInService;
            _taskRunner    = taskRunner;
        }
 internal static MessageHeader GenMessageHeader(this ISignInService signIn) => new MessageHeader
 {
     AppOrigin         = "WebApp",
     CurrentUser       = signIn.CurrentUser,
     IsCurrentUserDemo = signIn.Demo,
     Timestamp         = DateTime.Now.ToString("s"),
     Token             = Guid.NewGuid().ToString()
 };
Exemplo n.º 20
0
        public AccountController(ISignInService signInService, IUserService userService)
        {
            Guard.WhenArgument(signInService, "signInService").IsNull().Throw();
            Guard.WhenArgument(userService, "userService").IsNull().Throw();

            this.signInService = signInService;
            this.userService   = userService;
        }
Exemplo n.º 21
0
 public AccountController(ISignInService signInService,
                          ISignOutService signOutService,
                          IGetUsersService getUsersService)
 {
     this.signInService   = signInService;
     this.signOutService  = signOutService;
     this.getUsersService = getUsersService;
 }
Exemplo n.º 22
0
        public SignInPage()
        {
            this.InitializeComponent();
            ICredentialService credentialService = Application.Current.GetService <ICredentialService>();
            ISignInService     signInService     = Application.Current.GetService <ISignInService>();

            ViewModel = new SignInViewModel(credentialService, signInService, Application.Current.GetConfiguration());
        }
Exemplo n.º 23
0
        public HomeViewModel(IUserInfoService userInfoService, ISignInService signInService)
        {
            UserInfoService = userInfoService;
            SignInService   = signInService;

            ShowOrdersViewCommand   = new MvxAsyncCommand(ShowOrdersView);
            ShowSettingsViewCommand = new MvxAsyncCommand(ShowSettingsView);
        }
Exemplo n.º 24
0
 public SignInController(ISignInService signInService,
                         IUserTokenService userTokenService,
                         ISinginControlService singinControlService)
 {
     _signInService        = signInService;
     _userTokenService     = userTokenService;
     _singinControlService = singinControlService;
 }
Exemplo n.º 25
0
 public TokenController(
     ISignInService signin_service,
     ITokenService token_service
     )
 {
     this._signin_service = signin_service;
     this._token_service  = token_service;
 }
 public TwoFactorAuthenticationModel(
     IUserService userService,
     ISignInService signInService,
     ILogger <TwoFactorAuthenticationModel> logger)
 {
     _userService   = userService;
     _signInService = signInService;
     _logger        = logger;
 }
Exemplo n.º 27
0
 public RegisterController(IAccountService ccs,
     IAuthenticationService<IUserContext> authService,
     ISignInService signInService, IInternetActivityService ias, IPostalCodeRetrieverService pcrs
     ) 
 { 
    this._customerCreationService = ccs;
     this._internetActivityService = ias;
     this._postalCodeRetrieverService = pcrs;
 }
Exemplo n.º 28
0
 public SignInHub(
     IPlayerConnectionRepository <SignInHub> playerConnections,
     SignInHubMethods hubMethods,
     ISignInService signInService
     ) : base(playerConnections)
 {
     _hubMethods    = hubMethods;
     _signInService = signInService;
 }
Exemplo n.º 29
0
 public EmailModel(
     IUserService userservice,
     ISignInService signInService,
     IEmailService sendEmailService)
 {
     _userService      = userservice;
     _signInService    = signInService;
     _sendEmailService = sendEmailService;
 }
Exemplo n.º 30
0
 public ResetAuthenticatorModel(
     IUserService userService,
     ISignInService signInService,
     ILogger <ResetAuthenticatorModel> logger)
 {
     _userService   = userService;
     _signInService = signInService;
     _logger        = logger;
 }
Exemplo n.º 31
0
 public AccountApiController(ISignInService signInService,
                             IGetUsersService getUsersService, JwtConfiguration jwtConfiguration,
                             IDateTimeProvider dateTimeProvider)
 {
     this.signInService    = signInService;
     this.getUsersService  = getUsersService;
     this.jwtConfiguration = jwtConfiguration;
     this.dateTimeProvider = dateTimeProvider;
 }
Exemplo n.º 32
0
        public SignInViewModel(ISignInService signInService)
        {
            _publisher = Publisher.Instance;
            _publisher.SubscribeToPropertyChanges(this, "CurrentUser");
            _signInService = signInService;

            SignInCommand = new DelegateCommand(SignIn);
            SignOutCommand = new DelegateCommand(_signInService.SignOut);
        }
 public OperationsPrimaryProcessingJob(
     IMetadataProvider metadataProvider,
     IMessageFlowProcessorFactory messageFlowProcessorFactory,
     ISignInService signInService,
     IUserImpersonationService userImpersonationService,
     ITracer tracer)
     : base(signInService, userImpersonationService, tracer)
 {
     _metadataProvider = metadataProvider;
     _messageFlowProcessorFactory = messageFlowProcessorFactory;
 }
 public OperationsFinalProcessingJob(
     IMetadataProvider metadataProvider,
     IMessageFlowProcessorFactory messageFlowProcessorFactory,
     ISignInService signInService,
     IUserImpersonationService userImpersonationService,
     ITracer tracer)
     : base(signInService, userImpersonationService, tracer)
 {
     _metadataProvider = metadataProvider;
     _messageFlowProcessorFactory = messageFlowProcessorFactory;
     _firstFaultTolerantStageSetting = new Lazy<MessageProcessingStage>(EvaluateFirstFaultTolerantStage);
 }
Exemplo n.º 35
0
 public ReportingJob(ITracer tracer,
                     ISignInService signInService,
                     IUserImpersonationService userImpersonationService,
                     ITelemetryPublisher telemetry,
                     IConnectionStringSettings connectionStringSettings,
                     IServiceBusMessageReceiverSettings serviceBusMessageReceiverSettings)
     : base(signInService, userImpersonationService, tracer)
 {
     _telemetry = telemetry;
     _serviceBusMessageReceiverSettings = serviceBusMessageReceiverSettings;
     _manager = NamespaceManager.CreateFromConnectionString(connectionStringSettings.GetConnectionString(ServiceBusConnectionStringIdentity.Instance));
     _sqlConnection = new SqlConnection(connectionStringSettings.GetConnectionString(TransportConnectionStringIdentity.Instance));
 }
Exemplo n.º 36
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            _signInService = new SignInService();

            _signInConfiguraition = _signInService.GetConfiguration ();

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

             	_username = FindViewById<EditText> (Resource.Id.username);
            _username.KeyPress += InputKeyPress;

            _password = FindViewById<EditText> (Resource.Id.password);
            _password.KeyPress += InputKeyPress;
        }
Exemplo n.º 37
0
        public SearchViewModel(ISearchService searchService, IPageSwitchingService pageSwitchingService, IEventAggregator eventAggregator, ISignInService signInService, IUrlParameterToObjectsPlateHeater ticketUrlParameterToObjectPlateHeater)
        {
            _searchService = searchService;
            this._ticketUrlParameterToObjectPlateHeater = ticketUrlParameterToObjectPlateHeater;
            _pageSwitchingService = pageSwitchingService;
            _eventAggregator = eventAggregator;
            _signInService = signInService;

            // make sure the IsAppLoading is always up-to-date.
            signInService.SignInCompleted += (sender, ea) => IsAppLoading = ea.IsBusy;

            // just in case the event has previously been fired : we set its default value to the current value.
            IsAppLoading = _signInService.IsSigningIn;

            //_eventAggregator.GetEvent<CompositePresentationEvent<SynoTokenReceivedAggregatedEvent>>().Subscribe(OnSynoTokenReceived, false);

            StartSearchCommand = new DelegateCommand<string>(OnStartSearch);
            StartSearchAllCommand = new DelegateCommand<string>(OnStartSearchAll);
            ShowAboutBoxCommand = new DelegateCommand(OnShowAboutBox);
            SearchContextChangedCommand = new DelegateCommand<string>(OnSearchContextChanged);
            DispatchSearchCommand = new DelegateCommand<string>(OnDispatchSearch);
            ClearKeywordCommand = new DelegateCommand(OnClearKeyword);
            ShowPlayQueueCommand = new DelegateCommand(OnShowPlayQueue);
        }
Exemplo n.º 38
0
		public LoginActivity() {
			this.signInService = new SignInService();
			this.preferenceHelper = new SharedPreferencesHelper(this);
		}
Exemplo n.º 39
0
 public AccountController(IUserService userService, ISignInService signService)
 {
     _userService = userService;
     _signService = signService;
 }
Exemplo n.º 40
0
		public StartActivity()
		{
			this.signInService = new SignInService();
		}
		public RegisterActivity() {
			this.signInService = new SignInService();
		}
Exemplo n.º 42
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            this._signInService = IoC.Container.Get<ISignInService>();
            this._signInService.SignInCompleted += this.OnSignInComplete;
            EventHandler<CheckTokenValidityCompletedEventArgs> completed = null;
            completed = (s, ea) =>
                            {

                                // the modified closure here is on purpose.
                                this._signInService.CheckTokenValidityCompleted -= completed;
                                if (!ea.IsValid && ea.Error == null)
                                {
                                    this._signInService.SignIn();
                                }
                            };

            this._signInService.CheckTokenValidityCompleted += completed;
            this._signInService.CheckCachedTokenValidityAsync();
        }
Exemplo n.º 43
0
 public AccountController(ISignInService service)
 {
     _service = service;
 }
Exemplo n.º 44
0
 public DebugTestJob(ITracer tracer, ISignInService signInService, IUserImpersonationService userImpersonationService)
     : base(signInService, userImpersonationService, tracer)
 {
 }