Пример #1
0
 public UsersManagementPlugin(UserManagementConfig config = null)
 {
     if (config == null)
     {
         config = new UserManagementConfig();
     }
     _config = config;
 }
Пример #2
0
 public SceneAuthorizationController(Management.ManagementClientAccessor accessor, IEnvironment environment, UserManagementConfig config, IUserSessions sessions, ILogger logger)
 {
     _logger      = logger;
     _accessor    = accessor;
     _config      = config;
     _sessions    = sessions;
     _environment = environment;
 }
Пример #3
0
        public UserService(UserManagementConfig config, IESClientFactory clientFactory, IConfiguration configuration, ILogger logger, Lazy <IEnumerable <IUserEventHandler> > eventHandlers)
        {
            configuration.SettingsChanged += OnSettingsChanged;
            OnSettingsChanged(configuration, configuration.Settings);

            _eventHandlers = eventHandlers;
            _logger        = logger;
            //_logger.Log(LogLevel.Trace, "users", $"Using index {_indexName}", new { index = _indexName });

            _clientFactory = clientFactory;
        }
 public AuthenticationService(
     Func <IEnumerable <IAuthenticationEventHandler> > handlers,
     IEnumerable <IAuthenticationProvider> providers,
     UserManagementConfig config,
     IUserService users,
     IUserSessions sessions,
     ILogger logger,
     ISceneHost scene
     )
 {
     _config        = config;
     _logger        = logger;
     _authProviders = providers;
     _users         = users;
     _sessions      = sessions;
     _handlers      = handlers;
     _scene         = scene;
 }