public ClaimController( IProjectRepository projectRepository, IProjectService projectService, IClaimService claimService, IPlotRepository plotRepository, IClaimsRepository claimsRepository, IFinanceService financeService, IPluginFactory pluginFactory, ICharacterRepository characterRepository, IUriService uriService, IAccommodationRequestRepository accommodationRequestRepository, IAccommodationRepository accommodationRepository, IAccommodationInviteService accommodationInviteService, IAccommodationInviteRepository accommodationInviteRepository, IUserRepository userRepository) : base(projectRepository, projectService, userRepository) { _claimService = claimService; _plotRepository = plotRepository; _claimsRepository = claimsRepository; _accommodationRequestRepository = accommodationRequestRepository; _accommodationRepository = accommodationRepository; AccommodationInviteService = accommodationInviteService; AccommodationInviteRepository = accommodationInviteRepository; FinanceService = financeService; PluginFactory = pluginFactory; CharacterRepository = characterRepository; UriService = uriService; }
public DocumentsCoreRepositoryTests(PoliciesFixture policiesFixture, ClaimsFixture claimsFixture) { GenFuConfigurator.Initialise(); _userId = Guid.Parse("F1F86C06-6AA7-42E5-2EA9-08D61FB87E4D"); var configuration = new ConfigurationBuilder().AddJsonFile("AppSettings.json").Build(); var services = new ServiceCollection(); services.AddOptions(); services.AddMemoryCache(); services.AddLogging(configure => configure.AddNLog()); NLog.LogManager.LoadConfiguration("nlog.config"); services.Boot(); services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies()); services.Configure <AssureDataAccessLayerSettings>(configuration.GetSection("AssureDataAccessLayerSettings")); var serviceProvider = services.BuildServiceProvider(); var loggerFactory = serviceProvider.GetRequiredService <ILoggerFactory>(); _logger = loggerFactory.CreateLogger <DocumentsCoreRepositoryTests>(); _dbConnectionFactory = serviceProvider.GetService <IDbConnectionFactory>(); _repository = serviceProvider.GetService <IDocumentsRepository>(); _claimsRepository = serviceProvider.GetService <IClaimsRepository>(); _policiesFixture = policiesFixture; _claimsFixture = claimsFixture; }
public CommentController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IClaimService claimService, IExportDataService exportDataService, IClaimsRepository claimsRepository) : base(userManager, projectRepository, projectService, exportDataService) { ClaimService = claimService; ClaimsRepository = claimsRepository; }
public ApplicationUserManager(IUserStore <ApplicationUser> store, IDataProtectionProvider dataProtectionProvider, IClaimsRepository claimsRepository, ConfigurationService configurationService) : base(store) { this.claimsRepository = claimsRepository; this.configurationService = configurationService; UserValidator = new UserValidator <ApplicationUser>(this) { AllowOnlyAlphanumericUserNames = false, RequireUniqueEmail = true }; // Configure validation logic for passwords PasswordValidator = new PasswordPolicy(); // Configure user lockout defaults UserLockoutEnabledByDefault = true; DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(5); MaxFailedAccessAttemptsBeforeLockout = 5; UserTokenProvider = new DataProtectorTokenProvider <ApplicationUser>(dataProtectionProvider.Create("ASP.NET Identity")); }
public ClaimListController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IExportDataService exportDataService, IClaimsRepository claimsRepository, IUriService uriService) : base(userManager, projectRepository, projectService, exportDataService) { ClaimsRepository = claimsRepository; UriService = uriService; }
public CheckInController(IProjectRepository projectRepository, IClaimsRepository claimsRepository, IClaimService claimsService) : base(projectRepository) { ClaimsRepository = claimsRepository; ClaimsService = claimsService; }
public ClaimController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IClaimService claimService, IPlotRepository plotRepository, IClaimsRepository claimsRepository, IFinanceService financeService, IExportDataService exportDataService, IPluginFactory pluginFactory, ICharacterRepository characterRepository, IUriService uriService, IAccommodationRequestRepository accommodationRequestRepository, IAccommodationRepository accommodationRepository, IAccommodationService accommodationService, IAccommodationInviteService accommodationInviteService, IAccommodationInviteRepository accommodationInviteRepository) : base(userManager, projectRepository, projectService, exportDataService) { _claimService = claimService; _plotRepository = plotRepository; _claimsRepository = claimsRepository; _accommodationRequestRepository = accommodationRequestRepository; _accommodationRepository = accommodationRepository; AccommodationService = accommodationService; AccommodationInviteService = accommodationInviteService; AccommodationInviteRepository = accommodationInviteRepository; FinanceService = financeService; PluginFactory = pluginFactory; CharacterRepository = characterRepository; UriService = uriService; }
public ImportClaimsApplication(ImportClaimsConfiguration importClaimsConfiguration, IFileRepository fileRepository, IFileHandling fileHandling, IClaimsRepository claimsRepository) { _importClaimsConfiguration = importClaimsConfiguration; _fileRepository = fileRepository; _fileHandling = fileHandling; _claimsRepository = claimsRepository; }
public AgenciaService(IEnderecoRepository enderecorepository, IAgenciaRepository agenciarepository, IAgenciaUsuarioRepository agenciausuariorepository, IClaimsRepository claimsRepository) { _enderecorepository = enderecorepository; _agenciarepository = agenciarepository; _agenciausuariorepository = agenciausuariorepository; _claimrepository = claimsRepository; }
public TokenService(SecurityTokenServiceConfiguration configuration, IUserRepository userRepository, IClaimsRepository claimsRepository, IIdentityProviderRepository identityProviderRepository, IClaimsTransformationRulesRepository claimsTransformationRulesRepository) : base(configuration) { UserRepository = userRepository; ClaimsRepository = claimsRepository; IdentityProviderRepository = identityProviderRepository; ClaimsTransformationRulesRepository = claimsTransformationRulesRepository; }
public ClaimsAptoParaRegistroValidation(IClaimsRepository claimsRepository) { _claimsRepository = claimsRepository; RuleFor(claim => claim.Name) .Must(ClaimDeveSerUnico) .WithMessage("Claim já registrado.") .When(x => !string.IsNullOrEmpty(x.Name)); }
public ForumController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IExportDataService exportDataService, IForumService forumService, IForumRepository forumRepository, IClaimsRepository claimsRepository, IClaimService claimService) : base(userManager, projectRepository, projectService, exportDataService) { ForumService = forumService; ForumRepository = forumRepository; ClaimsRepository = claimsRepository; ClaimService = claimService; }
public TokenService(SecurityTokenServiceConfiguration configuration, IConfigurationRepository configurationRepository, IUserRepository userRepository, IClaimsRepository claimsRepository, IIdentityProviderRepository identityProviderRepository, IClaimsTransformationRulesRepository claimsTransformationRulesRepository) : base(configuration) { UserRepository = userRepository; ClaimsRepository = claimsRepository; IdentityProviderRepository = identityProviderRepository; ClaimsTransformationRulesRepository = claimsTransformationRulesRepository; ConfigurationRepository = configurationRepository; }
public MassMailController( IProjectRepository projectRepository, IProjectService projectService, IClaimsRepository claimRepository, IEmailService emailService, IUserRepository userRepository) : base(projectRepository, projectService, userRepository) { ClaimRepository = claimRepository; EmailService = emailService; }
public ClaimController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IClaimService claimService, IPlotRepository plotRepository, IClaimsRepository claimsRepository, IFinanceService financeService, IExportDataService exportDataService, IPluginFactory pluginFactory) : base(userManager, projectRepository, projectService, exportDataService) { _claimService = claimService; _plotRepository = plotRepository; _claimsRepository = claimsRepository; FinanceService = financeService; PluginFactory = pluginFactory; }
public MassMailController(ApplicationUserManager userManager, IProjectRepository projectRepository, IProjectService projectService, IExportDataService exportDataService, IClaimsRepository claimRepository, IEmailService emailService, IUserRepository userRepository) : base(userManager, projectRepository, projectService, exportDataService, userRepository) { ClaimRepository = claimRepository; EmailService = emailService; }
public AclController( IProjectRepository projectRepository, IProjectService projectService, IClaimsRepository claimRepository, IUriService uriService, IUserRepository userRepository) : base(projectRepository, projectService, userRepository) { ClaimRepository = claimRepository; UriService = uriService; }
public UsuarioHandler(IUsuarioRepository usuario_repository, IEstabelecimentoRepository estabelecimento_repository, IClaimsRepository claims_repository, IUsuarioClaimsRepository usuario_claims_repository, IMapper mapper) { _usuario_repository = usuario_repository; _estabelecimento_repository = estabelecimento_repository; _claims_repository = claims_repository; _usuario_claims_repository = usuario_claims_repository; _mapper = mapper; }
public AclController( IProjectRepository projectRepository, IProjectService projectService, IClaimsRepository claimRepository, IUriService uriService, IUserRepository userRepository, ICurrentUserAccessor currentUserAccessor) : base(projectRepository, projectService, userRepository) { ClaimRepository = claimRepository; UriService = uriService; this.currentUserAccessor = currentUserAccessor; }
private ImportClaimsApplication BuildImportClaimsApplication() { _configurationRepository = MockRepository.GenerateMock <IConfigurationRepository>(); _configurationRepository.Stub(x => x.GetConfigurationValue <string>("Confie.WesternGeneral.ServiceLogic.ImportClaimsApplication.Source")).Return("TestSource"); _configurationRepository.Stub(x => x.GetConfigurationValue <string>("Confie.WesternGeneral.ServiceLogic.ImportClaimsApplication.Destination")).Return("TestDestination"); _importClaimsConfiguration = new ImportClaimsConfiguration(_configurationRepository); _fileRepository = MockRepository.GenerateMock <IFileRepository>(); _fileHandling = MockRepository.GenerateMock <IFileHandling>(); _claimsRepository = MockRepository.GenerateMock <IClaimsRepository>(); return(new ImportClaimsApplication(_importClaimsConfiguration, _fileRepository, _fileHandling, _claimsRepository)); }
public ClaimsPrincipalFactory(UserManager <TUser> userManager, RoleManager <TRole> roleManager, IOptions <IdentityOptions> optionsAccessor, IUsersService usersService, IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService, IUserProfileService userProfileService, IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService, IClaimsRepository claimsRepository ) : base(userManager, roleManager, optionsAccessor) { _usersService = usersService; _departmentsService = departmentsService; _departmentGroupsService = departmentGroupsService; _userProfileService = userProfileService; _permissionsService = permissionsService; _personnelRolesService = personnelRolesService; _claimsRepository = claimsRepository; options = optionsAccessor.Value; }
public ClaimListController( IProjectRepository projectRepository, IProjectService projectService, IExportDataService exportDataService, IClaimsRepository claimsRepository, IUriService uriService, IAccommodationRepository accommodationRepository, IUserRepository userRepository) : base(projectRepository, projectService, userRepository) { ExportDataService = exportDataService; ClaimsRepository = claimsRepository; UriService = uriService; AccommodationRepository = accommodationRepository; }
public ForumController( IProjectRepository projectRepository, IProjectService projectService, IForumService forumService, IForumRepository forumRepository, IClaimsRepository claimsRepository, IClaimService claimService, IUserRepository userRepository ) : base(projectRepository, projectService, userRepository) { ForumService = forumService; ForumRepository = forumRepository; ClaimsRepository = claimsRepository; ClaimService = claimService; }
public CheckInController( ApplicationUserManager userManager, [NotNull] IProjectRepository projectRepository, IProjectService projectService, IExportDataService exportDataService, IClaimsRepository claimsRepository, IPlotRepository plotRepository, IClaimService claimService, ICharacterRepository characterRepository) : base(userManager, projectRepository, projectService, exportDataService) { ClaimsRepository = claimsRepository; PlotRepository = plotRepository; ClaimService = claimService; CharacterRepository = characterRepository; }
public CheckInController( [NotNull] IProjectRepository projectRepository, IProjectService projectService, IClaimsRepository claimsRepository, IPlotRepository plotRepository, IClaimService claimService, ICharacterRepository characterRepository, IUserRepository userRepository) : base(projectRepository, projectService, userRepository) { ClaimsRepository = claimsRepository; PlotRepository = plotRepository; ClaimService = claimService; CharacterRepository = characterRepository; }
public ClaimDataService( IClaimsRepository claimsRepository, IPolicyDetailContext policyDetailContext, IStateService stateService) { if (claimsRepository == null) { throw new ArgumentNullException("claimsRepository"); } if (policyDetailContext == null) { throw new ArgumentNullException("policyDetailContext"); } if (stateService == null) { throw new ArgumentNullException("stateService"); } this.claimsRepository = claimsRepository; this.policyDetailContext = policyDetailContext; this.stateService = stateService; this.InitialiseClaimModuleState(); }
public GetClaimByIdQueryHandler(IClaimsRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public ClaimsService() { claimsRepository = new ClaimsRepository(); }
public ClaimsController(IClaimsRepository claimRepository, IServerPath serverPath) { this._ClaimRepository = claimRepository; this._ServerPath = serverPath; }
public static List<Claim> GetOutputClaims(ClaimsPrincipal principal, RequestDetails requestDetails, IClaimsRepository claimsRepository) { return claimsRepository.GetClaims(SanitizeInternalClaims(principal), requestDetails).ToList(); }
public TokenService(SecurityTokenServiceConfiguration configuration, IUserRepository userRepository, IClaimsRepository claimsRepository) : base(configuration) { UserRepository = userRepository; ClaimsRepository = claimsRepository; }
public static List<Claim> GetOutputClaims(ClaimsPrincipal principal, RequestDetails requestDetails, IClaimsRepository claimsRepository) { var name = principal.FindAll(ClaimTypes.Name).First().Value; var nameId = new Claim(ClaimTypes.NameIdentifier, name); var userClaims = new List<Claim> { new Claim(ClaimTypes.Name, name), nameId, new Claim(ClaimTypes.AuthenticationMethod, principal.FindAll(ClaimTypes.AuthenticationMethod).First().Value), AuthenticationInstantClaim.Now }; userClaims.AddRange(claimsRepository.GetClaims(principal, requestDetails)); return userClaims; }
public static List <Claim> GetOutputClaims(ClaimsPrincipal principal, RequestDetails requestDetails, IClaimsRepository claimsRepository) { return(claimsRepository.GetClaims(SanitizeInternalClaims(principal), requestDetails).ToList()); }
public AdminController(IUserRepository userRepository, IConfigurationRepository configurationRepository, IClaimsRepository claimsRepository) { UserRepository = userRepository; ClaimsRepository = claimsRepository; ConfigurationRepository = configurationRepository; }
public AccountController() { claimsRepository = new InMemoryClaimsRepository(); }
public OidcUserInfoController(IClaimsRepository claimsRepository) { ClaimsRepository = claimsRepository; }
public AdminController(IUserRepository userRepository, IConfigurationRepository configurationRepository, IClaimsRepository claimsRepository) { UserRepository = userRepository; ClaimsRepository = claimsRepository; ConfigurationRepository = configurationRepository; }
public ClaimsService(IClaimsRepository claimsRepository, ILogService logService) { _claimsRepository = claimsRepository; _logService = logService; }
public ClaimsService() { claimsRepository = new ClaimsRepository(); }