コード例 #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;
 }
コード例 #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;
 }
コード例 #3
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,
     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;
 }
コード例 #4
0
 public Registry()
 {
     this.Board        = new Board();
     this.Drawing      = new Drawing();
     this.StringOutput = new StringOutput();
     this.UserActions  = new UserActions();
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #7
0
 public UserController(
     IUserActions userActions,
     ITranslationManager translationManager)
 {
     _userActions        = userActions;
     _translationManager = translationManager;
 }
コード例 #8
0
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IResourceOwnerRepository resourceOwnerRepository, IUserActions userActions, ISubjectBuilder subjectBuilder,
                                   SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _resourceOwnerRepository         = resourceOwnerRepository;
     _userActions = userActions;
 }
コード例 #9
0
ファイル: DataStorage.cs プロジェクト: hackersdelight/Loop
 private DataStorage()
 {
     connection = new ConnectToMsSql();
     taskActions = new TaskActions(connection);
     userActions = new UserActions(connection);
     riskActions = new RiskActions(connection);
     sprintActions = new SprintActions(connection);
 }
コード例 #10
0
        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);
        }
コード例 #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;
 }
コード例 #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);
        }
コード例 #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;
 }
コード例 #14
0
 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;
 }
コード例 #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;
     }
 }
コード例 #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;
     }
 }
コード例 #17
0
 // Use this for initialization
 void Start()
 {
     my     = GameScenceController.getInstance();
     action = GameScenceController.getInstance() as IUserActions;
 }
コード例 #18
0
 public UserController(IUserActions userActions, ITranslationManager translationManager, IAuthenticationService authenticationService, AuthenticateOptions options) : base(authenticationService, options)
 {
     _userActions        = userActions;
     _translationManager = translationManager;
 }
コード例 #19
0
 public UserController(
     IAuthenticationService authenticationService,
     IUserActions userActions,
     AuthenticateOptions authenticateOptions) : base(authenticationService, userActions, authenticateOptions)
 {
 }
コード例 #20
0
ファイル: AuthController.cs プロジェクト: Magi93/MyApp
 public AuthController(IConfiguration configuration, IUserActions userActions)
 {
     _configuration = configuration;
     _userAction    = userActions;
 }
コード例 #21
0
ファイル: UserController.cs プロジェクト: Magi93/MyApp
 public UserController(IUserActions userActions)
 {
     _userActions = userActions;
 }
コード例 #22
0
 // Use this for initialization
 void Start()
 {
     userAction = SceneController.GetInstance() as IUserActions;
 }
コード例 #23
0
 public ChangePasswordAction(ICredentialSettingActions credentialSettingActions, IUserActions userActions)
 {
     _credentialSettingActions = credentialSettingActions;
     _userActions = userActions;
 }
コード例 #24
0
 void Start()
 {
     actions   = mainSceneController.getInstance() as IUserActions;
     AI_status = new AI();
 }
コード例 #25
0
 void Start()
 {
     myActions = mainSceneController.getInstance() as IUserActions;
 }
コード例 #26
0
 void Start()
 {
     scene  = GameSceneController.GetInstance();
     state  = GameSceneController.GetInstance() as IQueryGameStatus;
     action = GameSceneController.GetInstance() as IUserActions;
 }
コード例 #27
0
 public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IUserActions userActions, SmsAuthenticationOptions smsAuthenticationOptions)
 {
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
     _userActions = userActions;
     _smsAuthenticationOptions = smsAuthenticationOptions;
 }
コード例 #28
0
ファイル: UserInterface.cs プロジェクト: Xiongzj5/Unity3D
 void Start()
 {
     Inst   = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUserActions;
 }
コード例 #29
0
 // Use this for initialization
 void Start()
 {
     theGame = DNPGameSceneController.GetInstance();
     action  = theGame as IUserActions;
 }