Exemplo n.º 1
0
 public BaseAuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     BasicAuthenticateOptions basicAuthenticateOptions) : base(authenticationService)
 {
     _openidAuthenticateResourceOwnerAction = openidAuthenticateResourceOwnerAction;
     _profileActions     = profileActions;
     _dataProtector      = dataProtectionProvider.CreateProtector("Request");
     _encoder            = encoder;
     _translationManager = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                    = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventPublisher               = eventPublisher;
     _payloadSerializer            = payloadSerializer;
     _authenticationSchemeProvider = authenticationSchemeProvider;
     _userActions                  = userActions;
     _configurationService         = configurationService;
     _authenticateHelper           = authenticateHelper;
     _basicAuthenticateOptions     = basicAuthenticateOptions;
 }
Exemplo n.º 2
0
 public AuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     ISmsAuthenticationOperation smsAuthenticationOperation,
     IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     SmsAuthenticationOptions basicAuthenticateOptions) : base(openidAuthenticateResourceOwnerAction, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, basicAuthenticateOptions)
 {
     _smsAuthenticationOperation      = smsAuthenticationOperation;
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
 }
 public AuthenticateController(
     IOpenidAuthenticateResourceOwnerAction openidAuthenticateResourceOwnerAction,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     IChangePasswordAction changePasswordAction,
     ILoginPwdAuthenticateAction loginPwdAuthenticateAction,
     LoginPasswordOptions basicAuthenticateOptions) : base(openidAuthenticateResourceOwnerAction, profileActions, dataProtectionProvider, encoder,
                                                           translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                           authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                           authenticateHelper, basicAuthenticateOptions)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _changePasswordAction            = changePasswordAction;
     _loginPwdAuthenticateAction      = loginPwdAuthenticateAction;
 }
Exemplo n.º 4
0
 public Registry()
 {
     this.Board        = new Board();
     this.Drawing      = new Drawing();
     this.StringOutput = new StringOutput();
     this.UserActions  = new UserActions();
 }
Exemplo n.º 5
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     AuthenticateOptions authenticateOptions,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper) : base(authenticationService, authenticateOptions)
 {
     _authenticateActions             = authenticateActions;
     _dataProtector                   = dataProtectionProvider.CreateProtector("Request");
     _encoder                         = encoder;
     _translationManager              = translationManager;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _urlHelper                       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _eventPublisher                  = eventPublisher;
     _payloadSerializer               = payloadSerializer;
     _authenticationSchemeProvider    = authenticationSchemeProvider;
     _configurationService            = configurationService;
     _authenticateHelper              = authenticateHelper;
 }
Exemplo n.º 6
0
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler,
     BasicAuthenticateOptions basicAuthenticateOptions) : base(authenticateActions, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, twoFactorAuthenticationHandler, basicAuthenticateOptions)
 {
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
 }
 public UserController(
     IUserActions userActions,
     ITranslationManager translationManager)
 {
     _userActions        = userActions;
     _translationManager = translationManager;
 }
Exemplo n.º 8
0
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IResourceOwnerRepository resourceOwnerRepository, IUserActions userActions, ISubjectBuilder subjectBuilder,
                                   SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _resourceOwnerRepository         = resourceOwnerRepository;
     _userActions = userActions;
 }
Exemplo n.º 9
0
 private DataStorage()
 {
     connection = new ConnectToMsSql();
     taskActions = new TaskActions(connection);
     userActions = new UserActions(connection);
     riskActions = new RiskActions(connection);
     sprintActions = new SprintActions(connection);
 }
        public void Setup()
        {
            _facebookClientProvider = Substitute.For<IFacebookClientProvider>();
            _facebookUserActions = Substitute.For<IUserActions>();
            var actionProvider = Substitute.For<IUserActionProvider>();
            actionProvider.Get(PlayerSource.Facebook).Returns(_facebookUserActions);

            _target = new FacebookController(_facebookClientProvider, actionProvider);
        }
Exemplo n.º 11
0
 public UserController(IUserActions userActions, IProfileActions profileActions, ITranslationManager translationManager,
                       IAuthenticationService authenticationService, IAuthenticationSchemeProvider authenticationSchemeProvider,
                       IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler) : base(authenticationService)
 {
     _userActions                  = userActions;
     _profileActions               = profileActions;
     _translationManager           = translationManager;
     _authenticationSchemeProvider = authenticationSchemeProvider;
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _twoFactorAuthenticationHandler = twoFactorAuthenticationHandler;
 }
Exemplo n.º 12
0
        public void Setup()
        {
            _playerReadModel = Substitute.For<IPlayerReadModel>();
            _facebookUserActions = Substitute.For<IUserActions>();
            _nativeUserActions = Substitute.For<IUserActions>();

            var actionProvider = Substitute.For<IUserActionProvider>();
            actionProvider.Get(PlayerSource.Facebook).Returns(_facebookUserActions);
            actionProvider.Get(PlayerSource.Native).Returns(_nativeUserActions);

            _target = new PlayerController(_playerReadModel, actionProvider);
        }
Exemplo n.º 13
0
 public HomeController(IUserActions userActions, IProfileActions profileActions, ITranslationManager translationManager,
                       IAuthenticationService authenticationService, IAuthenticationSchemeProvider authenticationSchemeProvider,
                       IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor,
                       IEnumerable <IAuthModule> authModules, UserManagementOptions userManagementOptions) : base(authenticationService)
 {
     _userActions                  = userActions;
     _profileActions               = profileActions;
     _translationManager           = translationManager;
     _authenticationSchemeProvider = authenticationSchemeProvider;
     _urlHelper             = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
     _authModules           = authModules;
     _userManagementOptions = userManagementOptions;
 }
 public ConsentController(
     IConsentActions consentActions,
     IDataProtectionProvider dataProtectionProvider,
     ITranslationManager translationManager,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IUserActions usersAction,
     IPayloadSerializer payloadSerializer) : base(authenticationService)
 {
     _consentActions     = consentActions;
     _dataProtector      = dataProtectionProvider.CreateProtector("Request");
     _translationManager = translationManager;
     _eventPublisher     = eventPublisher;
     _payloadSerializer  = payloadSerializer;
 }
Exemplo n.º 15
0
 public void SetCallbacks(IUserActions instance)
 {
     if (m_Wrapper.m_UserActionsCallbackInterface != null)
     {
         @Up.started       -= m_Wrapper.m_UserActionsCallbackInterface.OnUp;
         @Up.performed     -= m_Wrapper.m_UserActionsCallbackInterface.OnUp;
         @Up.canceled      -= m_Wrapper.m_UserActionsCallbackInterface.OnUp;
         @Down.started     -= m_Wrapper.m_UserActionsCallbackInterface.OnDown;
         @Down.performed   -= m_Wrapper.m_UserActionsCallbackInterface.OnDown;
         @Down.canceled    -= m_Wrapper.m_UserActionsCallbackInterface.OnDown;
         @Select.started   -= m_Wrapper.m_UserActionsCallbackInterface.OnSelect;
         @Select.performed -= m_Wrapper.m_UserActionsCallbackInterface.OnSelect;
         @Select.canceled  -= m_Wrapper.m_UserActionsCallbackInterface.OnSelect;
         @Back.started     -= m_Wrapper.m_UserActionsCallbackInterface.OnBack;
         @Back.performed   -= m_Wrapper.m_UserActionsCallbackInterface.OnBack;
         @Back.canceled    -= m_Wrapper.m_UserActionsCallbackInterface.OnBack;
         @Left.started     -= m_Wrapper.m_UserActionsCallbackInterface.OnLeft;
         @Left.performed   -= m_Wrapper.m_UserActionsCallbackInterface.OnLeft;
         @Left.canceled    -= m_Wrapper.m_UserActionsCallbackInterface.OnLeft;
         @Right.started    -= m_Wrapper.m_UserActionsCallbackInterface.OnRight;
         @Right.performed  -= m_Wrapper.m_UserActionsCallbackInterface.OnRight;
         @Right.canceled   -= m_Wrapper.m_UserActionsCallbackInterface.OnRight;
     }
     m_Wrapper.m_UserActionsCallbackInterface = instance;
     if (instance != null)
     {
         @Up.started       += instance.OnUp;
         @Up.performed     += instance.OnUp;
         @Up.canceled      += instance.OnUp;
         @Down.started     += instance.OnDown;
         @Down.performed   += instance.OnDown;
         @Down.canceled    += instance.OnDown;
         @Select.started   += instance.OnSelect;
         @Select.performed += instance.OnSelect;
         @Select.canceled  += instance.OnSelect;
         @Back.started     += instance.OnBack;
         @Back.performed   += instance.OnBack;
         @Back.canceled    += instance.OnBack;
         @Left.started     += instance.OnLeft;
         @Left.performed   += instance.OnLeft;
         @Left.canceled    += instance.OnLeft;
         @Right.started    += instance.OnRight;
         @Right.performed  += instance.OnRight;
         @Right.canceled   += instance.OnRight;
     }
 }
Exemplo n.º 16
0
 public void SetCallbacks(IUserActions instance)
 {
     if (m_Wrapper.m_UserActionsCallbackInterface != null)
     {
         @MouseDown.started   -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseDown;
         @MouseDown.performed -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseDown;
         @MouseDown.canceled  -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseDown;
         @MouseMove.started   -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseMove;
         @MouseMove.performed -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseMove;
         @MouseMove.canceled  -= m_Wrapper.m_UserActionsCallbackInterface.OnMouseMove;
     }
     m_Wrapper.m_UserActionsCallbackInterface = instance;
     if (instance != null)
     {
         @MouseDown.started   += instance.OnMouseDown;
         @MouseDown.performed += instance.OnMouseDown;
         @MouseDown.canceled  += instance.OnMouseDown;
         @MouseMove.started   += instance.OnMouseMove;
         @MouseMove.performed += instance.OnMouseMove;
         @MouseMove.canceled  += instance.OnMouseMove;
     }
 }
Exemplo n.º 17
0
 // Use this for initialization
 void Start()
 {
     my     = GameScenceController.getInstance();
     action = GameScenceController.getInstance() as IUserActions;
 }
 public UserController(IUserActions userActions, ITranslationManager translationManager, IAuthenticationService authenticationService, AuthenticateOptions options) : base(authenticationService, options)
 {
     _userActions        = userActions;
     _translationManager = translationManager;
 }
 public UserController(
     IAuthenticationService authenticationService,
     IUserActions userActions,
     AuthenticateOptions authenticateOptions) : base(authenticationService, userActions, authenticateOptions)
 {
 }
Exemplo n.º 20
0
 public AuthController(IConfiguration configuration, IUserActions userActions)
 {
     _configuration = configuration;
     _userAction    = userActions;
 }
Exemplo n.º 21
0
 public UserController(IUserActions userActions)
 {
     _userActions = userActions;
 }
 // Use this for initialization
 void Start()
 {
     userAction = SceneController.GetInstance() as IUserActions;
 }
Exemplo n.º 23
0
 public ChangePasswordAction(ICredentialSettingActions credentialSettingActions, IUserActions userActions)
 {
     _credentialSettingActions = credentialSettingActions;
     _userActions = userActions;
 }
Exemplo n.º 24
0
 void Start()
 {
     actions   = mainSceneController.getInstance() as IUserActions;
     AI_status = new AI();
 }
Exemplo n.º 25
0
 void Start()
 {
     myActions = mainSceneController.getInstance() as IUserActions;
 }
Exemplo n.º 26
0
 void Start()
 {
     scene  = GameSceneController.GetInstance();
     state  = GameSceneController.GetInstance() as IQueryGameStatus;
     action = GameSceneController.GetInstance() as IUserActions;
 }
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IUserActions userActions, SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _userActions = userActions;
     _smsAuthenticationOptions = smsAuthenticationOptions;
 }
Exemplo n.º 28
0
 void Start()
 {
     Inst   = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUserActions;
 }
Exemplo n.º 29
0
 // Use this for initialization
 void Start()
 {
     theGame = DNPGameSceneController.GetInstance();
     action  = theGame as IUserActions;
 }