public FavoriteRegionPageViewModel(INavigationService navigationService, IFavoriteRegionListService favoriteRegionListService, IAuthentificationService authentificationService)
     : base(navigationService)
 {
     _navigationService         = navigationService;
     _favoriteRegionListService = favoriteRegionListService;
     _authentificationService   = authentificationService;
 }
 public MainPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IAuthentificationService authentificationService)
     : base(navigationService)
 {
     _authentificationService = authentificationService;
     _navigationService       = navigationService;
     _pageDialogService       = pageDialogService;
 }
Esempio n. 3
0
 public AccountController(IAuthentificationService <ClaimsIdentity> authServiceHttp,
                          IAuthentificationService <string> authServiceWpf,
                          IEmployeeService employeeService)
 {
     AuthServiceHttp      = authServiceHttp;
     AuthServiceWpf       = authServiceWpf;
     this.employeeService = employeeService;
 }
 public UserPageViewModel(INavigationService navigationService, IAuthentificationService authentificationService, IPageDialogService pageDialogService)
     : base(navigationService)
 {
     _navigationService       = navigationService;
     _authentificationService = authentificationService;
     _pageDialogService       = pageDialogService;
     UserName = _authentificationService.AuthenticatedUserName;
 }
 public void Setup()
 {
     _invoker       = new TestInvoker();
     _configuration = new TestConfigurationService();
     _configuration.Setup("http://playground.tesonet.lt/v1/", "tokens", "servers");
     _authentification        = new AuthentificationService(_configuration, _invoker);
     _cancellationTokenSource = new CancellationTokenSource();
 }
Esempio n. 6
0
 public UsersController(IUserRepository repoInstance, IAuthentificationService authenticationService)
 {
     if (repoInstance == null || authenticationService == null)
     {
         throw new Exception("Repository is null!");
     }
     _authenticationService = authenticationService;
     repository             = repoInstance;
 }
 public AuthenticationController(
     IAuthentificationService authenticateService,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager
     )
 {
     this.authenticateService = authenticateService;
     this.userManager         = userManager;
     this.signInManager       = signInManager;
 }
        public AuthentificationPopupViewPresenter(
            IApplicationResources resources,
            IGoogleAccountService googleAccountService,
            IAuthentificationService authentificationService)
        {
            this.resources               = resources;
            this.googleAccountService    = googleAccountService;
            this.authentificationService = authentificationService;
            this.BindingModel            = new AuthentificationPageViewBindingModel();

            this.SignInCommand = new DelegateCommand(this.SignIn, () => !this.BindingModel.IsSigningIn);

            this.BindingModel.Subscribe(() => this.BindingModel.IsSigningIn, (sender, args) => this.SignInCommand.RaiseCanExecuteChanged());
        }
Esempio n. 9
0
        public RegisterPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IRegisterService registerService, IAuthentificationService authentificationService)
            : base(navigationService)
        {
            _email           = new ValidatableObject <string>();
            _password        = new ValidatableObject <string>();
            _passwordConfirm = new ValidatableObject <string>();

            AddValidations();

            _navigationService       = navigationService;
            _pageDialogService       = pageDialogService;
            _registerService         = registerService;
            _authentificationService = authentificationService;
        }
Esempio n. 10
0
 public UsersController(IUserService userService, IRegistrationService registrationalService, IConfirmationSenderService confirmationalService,
                        IAuthentificationService authentificationSerice, IJwtService jwtService, IEmailChangeService emailChangeService, IEmailConfirmationService emailConfirmationService,
                        IPasswordChangeService passwordChangeService, IPasswordRecoveryService passwordRecoveryService, IValidationService userDraftValidationService)
 {
     _emailChangeService         = emailChangeService;
     _userService                = userService;
     _jwtService                 = jwtService;
     _autentificationService     = authentificationSerice;
     _registrationService        = registrationalService;
     _confirmationSenderService  = confirmationalService;
     _emailConfirmationService   = emailConfirmationService;
     _passwordChangeService      = passwordChangeService;
     _passwordRecoveryService    = passwordRecoveryService;
     _userDraftValidationService = userDraftValidationService;
 }
Esempio n. 11
0
        public MenuViewModel(IMvxNavigationService navigationService, IAuthentificationService authentificationService,
                             IPreferences preferences, IVersionTracking versionTracking, IUserSettingsService userSettingsService,
                             IUserDialogs userDialogs, IMvxMessenger messenger, OperationsDatabase operationsDatabase, IDialogNavigationService dialogNavigationService)
        {
            _navigationService       = navigationService;
            _authentificationService = authentificationService;
            _preferences             = preferences;
            _versionTracking         = versionTracking;
            _userSettingsService     = userSettingsService;
            _userDialogs             = userDialogs;
            _messenger               = messenger;
            _operationsDatabase      = operationsDatabase;
            _dialogNavigationService = dialogNavigationService;

            BuildMenu();
        }
Esempio n. 12
0
        private void Dispose(bool pDispose)
        {
            if (_disposed)
            {
                return;
            }

            if (pDispose)
            {
                _authentificationService = null;
                _staticService           = null;
                UnsubscribeEvents();
            }

            _disposed = true;
        }
Esempio n. 13
0
        internal ETLService(IAuthentificationService pAuthentificationService, IStaticService pStaticService, IEventService pEventService)
        {
            if (pAuthentificationService == null)
            {
                throw new ArgumentNullException("pAuthentificationService");
            }
            if (pStaticService == null)
            {
                throw new ArgumentNullException("pStaticService");
            }
            if (pEventService == null)
            {
                throw new ArgumentNullException("pEventService");
            }

            _authentificationService = pAuthentificationService;
            _staticService           = pStaticService;
            _eventService            = pEventService;
        }
Esempio n. 14
0
        public StartPageViewPresenter(
            IApplicationResources resources,
            ISettingsService settingsService,
            IAuthentificationService authentificationService,
            INavigationService navigationService,
            IPlayQueueService playQueueService,
            IPlaylistsService playlistsService,
            IMainFrameRegionProvider mainFrameRegionProvider,
            IGoogleMusicSessionService sessionService,
            ISearchService searchService,
            ISongsCachingService cachingService,
            IApplicationStateService stateService)
        {
            this.resources               = resources;
            this.settingsService         = settingsService;
            this.authentificationService = authentificationService;
            this.playQueueService        = playQueueService;
            this.navigationService       = navigationService;
            this.playlistsService        = playlistsService;
            this.mainFrameRegionProvider = mainFrameRegionProvider;
            this.sessionService          = sessionService;
            this.searchService           = searchService;
            this.cachingService          = cachingService;
            this.stateService            = stateService;

            Func <bool> canExecute = () => this.BindingModel.SelectedItems.Count > 0 &&
                                     this.BindingModel.SelectedItems.All(x =>
                                                                         x.Playlist.PlaylistType != PlaylistType.Radio ||
                                                                         (x.Playlist.PlaylistType == PlaylistType.UserPlaylist && !((UserPlaylist)x.Playlist).IsShared));

            this.PlayCommand     = new DelegateCommand(this.Play);
            this.QueueCommand    = new DelegateCommand(this.Queue, canExecute);
            this.DownloadCommand = new DelegateCommand(this.Download, canExecute);
            this.UnPinCommand    = new DelegateCommand(this.UnPin, canExecute);

            this.sessionService.SessionCleared += async(sender, args) =>
            {
                await this.DeinitializeAsync();

                this.ShowAuthentificationPopupView();
            };
        }
Esempio n. 15
0
        public async Task LoginToGoogle()
        {
            IAuthentificationService _authentificationService = DependencyService.Get <IAuthentificationService>();
            string Token = "";

            if (_emailInput != null && _passwordInput != null)
            {
                if (credentialsValid())
                {
                    Token = await _authentificationService.LoginWithEmailPassword(_emailInput, _passwordInput);
                }
            }

            if (Token != "")
            {
                await _masterNavigationService.PushAsync(new ReservationPage());
            }
            else
            {
                await _pageService.DisplayAlert("Authentication Failed", "E-mail or password are incorrect. Try again!", "OK");
            }
        }
Esempio n. 16
0
        public StartPageViewPresenter(
            IApplicationResources resources,
            ISettingsService settingsService,
            IAuthentificationService authentificationService,
            INavigationService navigationService,
            IPlayQueueService playQueueService,
            IPlaylistsService playlistsService,
            IMainFrameRegionProvider mainFrameRegionProvider,
            IGoogleMusicSessionService sessionService,
            ISearchService searchService,
            ISongsCachingService cachingService,
            IApplicationStateService stateService)
        {
            this.resources               = resources;
            this.settingsService         = settingsService;
            this.authentificationService = authentificationService;
            this.playQueueService        = playQueueService;
            this.navigationService       = navigationService;
            this.playlistsService        = playlistsService;
            this.mainFrameRegionProvider = mainFrameRegionProvider;
            this.sessionService          = sessionService;
            this.searchService           = searchService;
            this.cachingService          = cachingService;
            this.stateService            = stateService;

            this.PlayCommand     = new DelegateCommand(this.Play);
            this.QueueCommand    = new DelegateCommand(this.Queue, () => this.BindingModel.SelectedItems.Count > 0);
            this.DownloadCommand = new DelegateCommand(this.Download, () => this.BindingModel.SelectedItems.Count > 0);
            this.UnPinCommand    = new DelegateCommand(this.UnPin, () => this.BindingModel.SelectedItems.Count > 0);

            this.sessionService.SessionCleared += async(sender, args) =>
            {
                await this.DeinitializeAsync();

                this.ShowAuthentificationPopupView();
            };
        }
 public SplashScreenViewModel(IConnectivity connectivity, IPreferences preferences, IVersionTracking versionTracking,
                              IAuthentificationService authentificationService, IMvxNavigationService navigationService, IMvxMessenger messenger,
                              ISecureStorage secureStorage, IAppSettings appSettings, IUserSettingsService userSettingsService, IUserDialogs userDialogs,
                              WasabeeApiV1Service wasabeeApiV1Service, UsersDatabase usersDatabase, OperationsDatabase operationsDatabase, LinksDatabase linksDatabase,
                              MarkersDatabase markersDatabase, TeamsDatabase teamsDatabase, TeamAgentsDatabase teamAgentsDatabase)
 {
     _connectivity            = connectivity;
     _preferences             = preferences;
     _versionTracking         = versionTracking;
     _authentificationService = authentificationService;
     _navigationService       = navigationService;
     _messenger           = messenger;
     _secureStorage       = secureStorage;
     _appSettings         = appSettings;
     _userSettingsService = userSettingsService;
     _userDialogs         = userDialogs;
     _wasabeeApiV1Service = wasabeeApiV1Service;
     _usersDatabase       = usersDatabase;
     _operationsDatabase  = operationsDatabase;
     _linksDatabase       = linksDatabase;
     _markersDatabase     = markersDatabase;
     _teamsDatabase       = teamsDatabase;
     _teamAgentsDatabase  = teamAgentsDatabase;
 }
Esempio n. 18
0
        public SettingsViewModel()
        {
            _meetingService        = App.Instance.GetInstance <IMeetingService>();
            _authenService         = App.Instance.GetInstance <IAuthentificationService>();
            _backgroundTaskService = App.Instance.BackgroundTaskService;

            //TODO : localisation
            SettingsList = new SuspendableObservableCollection <GroupedSettingsViewModel>();
            SettingsList.Add(new GroupedSettingsViewModel("ACRA", new List <SettingViewModel>
            {
                new ToggleSettingViewModel("Intégration dans le calendrier", new RelayCommand <bool>(ToggleIntegrationCalendar), ApplicationSettings.IsIntegrationToCalendarEnabled),
                new ToggleSettingViewModel("Intégration dans les rappels", new RelayCommand <bool>(ToggleIsIntegrationReminder), ApplicationSettings.IsIntegrationToReminderEnabled),
                new ToggleSettingViewModel("Mise à jour en arrière-plan", new RelayCommand <bool>(ToggleBackgroundUpdate), ApplicationSettings.IsBackgroundUpdateEnabled),
            }));
            //TODO : localisation
            SettingsList.Add(new GroupedSettingsViewModel(OnlineSettings.Identity, new List <SettingViewModel>
            {
                new ButtonSettingViewModel("Déconnexion", new RelayCommand(LogOutAction))
                {
                    ColorStyle          = ColorStyle.Danger,
                    HorizontalAlignment = SettingsHorizontalAlignment.Center
                }
            }));
        }
Esempio n. 19
0
 public AccountController(IAuthentificationService authentificationService)
 {
     _authentificationService = authentificationService;
 }
Esempio n. 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="authentificationService">The authentification service.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="passwordHashProvider">The password hash provider.</param>
 public UserController(IAuthentificationService authentificationService, IUserRepository userRepository, IPasswordHashProvider passwordHashProvider)
 {
     this.AuthentificationService = authentificationService;
     this.UserRepository = userRepository;
     this.PasswordHashProvider = passwordHashProvider;
 }
Esempio n. 21
0
 public OnlineMeetingRepository(IAuthentificationService authentificationService)
 {
     _authentificationService = authentificationService;
 }
Esempio n. 22
0
 public StartupViewModel()
 {
     _authenService      = App.Instance.GetInstance <IAuthentificationService>();
     GoToNextPageCommand = new RelayCommand(GoToNextPage);
 }
 public WeatherPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IApiService apiService, IAuthentificationService authentificationService, IFavoriteRegionListService favoriteRegionListService)
     : base(navigationService)
 {
     _pageDialogService         = pageDialogService;
     _navigationService         = navigationService;
     _apiService                = apiService;
     _userConnected             = authentificationService.IsUserAuthenticated;
     _userName                  = authentificationService.AuthenticatedUserName;
     _favoriteRegionListService = favoriteRegionListService;
 }
Esempio n. 24
0
 public AccountController(IAuthentificationService authentificationService, Repository repository)
 {
     Repository = repository ?? new Repository();
     AuthentificationService = authentificationService ?? new AuthentificationService(Repository);
     validator = new AccountInputValidator(ModelState);
 }
Esempio n. 25
0
 public Authentificator(IAuthentificationService authentificationService)
 {
     _authentificationService = authentificationService;
 }
 public LoginController(IAuthentificationService authService)
 {
     _authService = authService;
 }
Esempio n. 27
0
 public BpmHttpProvider(IAuthentificationService authService)
 {
     AuthService = authService;
 }
Esempio n. 28
0
 public OnlineUseFullDocumentRepository(IAuthentificationService authentificationService)
 {
     _authentificationService = authentificationService;
 }
 public LoginForm()
 {
     this._authentificationService = new AuthentificationService();
     InitializeComponent();
 }
Esempio n. 30
0
 public AccountController(IAuthentificationService authentificationService, Repository repository)
 {
     Repository = repository ?? new Repository();
     AuthentificationService = authentificationService ?? new AuthentificationService(Repository);
     validator = new AccountInputValidator(ModelState);
 }
 public AuthentificationController(IAuthentificationService ause)
 {
     this.ause = ause;
 }