public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IIdentityFacade identityFacade, IUserRepository userRepository, IAccountModelBuilder accountBuilder)
 {
     UserManager     = userManager;
     SignInManager   = signInManager;
     _identityFacade = identityFacade;
     _userRepository = userRepository;
     _accountBuilder = accountBuilder;
 }
Exemplo n.º 2
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IFileTypeValidator FileValidator, IIdentityFacade identityFacade, IImageRepository ImageRepository)
 {
     UserManager      = userManager;
     SignInManager    = signInManager;
     _imageRepository = ImageRepository;
     _identityFacade  = identityFacade;
     _fileValidator   = FileValidator;
 }
Exemplo n.º 3
0
 public PostController(
     IBlogRepository PostRepository,
     IIdentityFacade IdentityFacade,
     IPostBuilder postBuilder,
     IDisplayValidator displayValidator,
     IAccessValidator accessValidator)
 {
     _postRepository   = PostRepository;
     _identityFacade   = IdentityFacade;
     _postBuilder      = postBuilder;
     _accessValidator  = accessValidator;
     _displayValidator = displayValidator;
 }
Exemplo n.º 4
0
        public PostBuilder(IBlogRepository postRepository,
                           IIdentityFacade identityFacade,
                           IDisplayValidator displayValidator,
                           IImageRepository imageRepository,
                           IDataConverter dataConverter)

        {
            _postRepository   = postRepository;
            _identityFacade   = identityFacade;
            _displayValidator = displayValidator;
            _imageRepository  = imageRepository;
            _dataConverter    = dataConverter;
        }
 public DataImporter(IClientConfigurationValidator clientValidator, IConfigurationDbContext configurationDatabaseContext, IFeatureManager featureManager, IIdentityFacade identityFacade, ILoggerFactory loggerFactory, IServiceProvider serviceProvider)
 {
     this.ClientValidator = clientValidator ?? throw new ArgumentNullException(nameof(clientValidator));
     this.ConfigurationDatabaseContext = configurationDatabaseContext ?? throw new ArgumentNullException(nameof(configurationDatabaseContext));
     this.FeatureManager  = featureManager ?? throw new ArgumentNullException(nameof(featureManager));
     this.IdentityFacade  = identityFacade ?? throw new ArgumentNullException(nameof(identityFacade));
     this.LoggerFactory   = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
     this.Logger          = loggerFactory.CreateLogger(this.GetType());
     this.ServiceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
 }
Exemplo n.º 6
0
        public DataExporter(IConfigurationDbContext configurationDatabaseContext, IFeatureManager featureManager, IIdentityFacade identityFacade, ILoggerFactory loggerFactory, IServiceProvider serviceProvider)
        {
            this.ConfigurationDatabaseContext = configurationDatabaseContext ?? throw new ArgumentNullException(nameof(configurationDatabaseContext));
            this.FeatureManager = featureManager ?? throw new ArgumentNullException(nameof(featureManager));
            this.IdentityFacade = identityFacade ?? throw new ArgumentNullException(nameof(identityFacade));
            this.Logger         = (loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory))).CreateLogger(this.GetType());

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (featureManager.IsEnabled(Feature.Saml))
            {
                this.SamlDatabaseContext = serviceProvider.GetRequiredService <ISamlConfigurationDbContext>();
            }

            if (featureManager.IsEnabled(Feature.WsFederation))
            {
                this.WsFederationDatabaseContext = serviceProvider.GetRequiredService <IWsFederationConfigurationDbContext>();
            }
        }
Exemplo n.º 7
0
 public AccessValidator(IIdentityFacade identityFacade, IBlogRepository postRepository)
 {
     _identityFacade = identityFacade;
     _postRepository = postRepository;
 }
Exemplo n.º 8
0
 public UserLoginImporter(IIdentityFacade facade, ILoggerFactory loggerFactory) : base(facade, loggerFactory)
 {
 }
 protected IdentityPartialImporter(IIdentityFacade facade, ILoggerFactory loggerFactory) : base(loggerFactory)
 {
     this.Facade = facade ?? throw new ArgumentNullException(nameof(facade));
 }
Exemplo n.º 10
0
 public PostFactory(IIdentityFacade identityFacade, IDataConverter dataConverter)
 {
     _identityFacade = identityFacade;
     _dataConverter  = dataConverter;
 }
Exemplo n.º 11
0
        public Facade(IAuthenticationSchemeRetriever authenticationSchemeRetriever, IAuthorizationResolver authorizationResolver, IClientStore clientStore, IDecorationLoader decorationLoader, IEventService events, IOptionsMonitor <ExceptionHandlingOptions> exceptionHandling, IFeatureManager featureManager, IHttpContextAccessor httpContextAccessor, IIdentityFacade identity, IOptionsMonitor <ExtendedIdentityServerOptions> identityServer, IIdentityServerInteractionService interaction, IStringLocalizerFactory localizerFactory, ILoggerFactory loggerFactory, IOptionsMonitor <RequestLocalizationOptions> requestLocalization, IServiceProvider serviceProvider)
        {
            this.AuthenticationSchemeRetriever = authenticationSchemeRetriever ?? throw new ArgumentNullException(nameof(authenticationSchemeRetriever));
            this.AuthorizationResolver         = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver));
            this.ClientStore         = clientStore ?? throw new ArgumentNullException(nameof(clientStore));
            this.DecorationLoader    = decorationLoader ?? throw new ArgumentNullException(nameof(decorationLoader));
            this.Events              = events ?? throw new ArgumentNullException(nameof(events));
            this.ExceptionHandling   = exceptionHandling ?? throw new ArgumentNullException(nameof(exceptionHandling));
            this.FeatureManager      = featureManager ?? throw new ArgumentNullException(nameof(featureManager));
            this.HttpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
            this.Identity            = identity ?? throw new ArgumentNullException(nameof(identity));
            this.IdentityServer      = identityServer ?? throw new ArgumentNullException(nameof(identityServer));
            this.Interaction         = interaction ?? throw new ArgumentNullException(nameof(interaction));
            this.LocalizerFactory    = localizerFactory ?? throw new ArgumentNullException(nameof(localizerFactory));
            this.LoggerFactory       = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
            this.RequestLocalization = requestLocalization ?? throw new ArgumentNullException(nameof(requestLocalization));

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (featureManager.IsEnabled(Feature.Saml))
            {
                this.SamlInteraction = serviceProvider.GetRequiredService <ISamlInteractionService>();
            }
        }
Exemplo n.º 12
0
 public RavenPersonalGateway(IServiceProvider provider) : base(provider)
 {
     _facade = provider.GetRequiredService <IIdentityFacade>();
 }