Пример #1
0
 public void Setup()
 {
     _gdprService         = Resolve <IGdprService>();
     _userService         = Resolve <IUserService>();
     _consentService      = Resolve <IConsentService>();
     _consentGroupService = Resolve <IConsentGroupService>();
 }
        public AccountChooserResponseGenerator(ISystemClock clock,ILogger<AuthorizeInteractionResponseGenerator> logger,
            IConsentService consent,
            IProfileService profile) :base(clock,logger,consent, profile)
        {


        }
Пример #3
0
 public GdprService(IConsentLogService consentLogService, IConsentService consentService, ICryptographyService cryptographyService, IUserService userService)
 {
     _consentLogService   = consentLogService;
     _consentService      = consentService;
     _cryptographyService = cryptographyService;
     _userService         = userService;
 }
Пример #4
0
        /// <summary>
        /// Creates a partial service context with only some services (for tests).
        /// </summary>
        /// <remarks>
        /// <para>Using a true constructor for this confuses DI containers.</para>
        /// </remarks>
        public static ServiceContext CreatePartial(
            IContentService contentService         = null,
            IMediaService mediaService             = null,
            IContentTypeService contentTypeService = null,
            IMediaTypeService mediaTypeService     = null,
            IDataTypeService dataTypeService       = null,
            IFileService fileService = null,
            ILocalizationService localizationService = null,
            IPackagingService packagingService       = null,
            IEntityService entityService             = null,
            IRelationService relationService         = null,
            IMemberGroupService memberGroupService   = null,
            IMemberTypeService memberTypeService     = null,
            IMemberService memberService             = null,
            IUserService userService            = null,
            ISectionService sectionService      = null,
            IApplicationTreeService treeService = null,
            ITagService tagService = null,
            INotificationService notificationService   = null,
            ILocalizedTextService localizedTextService = null,
            IAuditService auditService                           = null,
            IDomainService domainService                         = null,
            IMacroService macroService                           = null,
            IPublicAccessService publicAccessService             = null,
            IExternalLoginService externalLoginService           = null,
            IServerRegistrationService serverRegistrationService = null,
            IRedirectUrlService redirectUrlService               = null,
            IConsentService consentService                       = null)
        {
            Lazy <T> Lazy <T>(T service) => service == null ? null : new Lazy <T>(() => service);

            return(new ServiceContext(
                       Lazy(publicAccessService),
                       Lazy(domainService),
                       Lazy(auditService),
                       Lazy(localizedTextService),
                       Lazy(tagService),
                       Lazy(contentService),
                       Lazy(userService),
                       Lazy(memberService),
                       Lazy(mediaService),
                       Lazy(contentTypeService),
                       Lazy(mediaTypeService),
                       Lazy(dataTypeService),
                       Lazy(fileService),
                       Lazy(localizationService),
                       Lazy(packagingService),
                       Lazy(serverRegistrationService),
                       Lazy(entityService),
                       Lazy(relationService),
                       Lazy(treeService),
                       Lazy(sectionService),
                       Lazy(macroService),
                       Lazy(memberTypeService),
                       Lazy(memberGroupService),
                       Lazy(notificationService),
                       Lazy(externalLoginService),
                       Lazy(redirectUrlService),
                       Lazy(consentService)));
        }
Пример #5
0
 public AuthorizeInteractionResponseGenerator(IConsentService consent, IUserService users, ILocalizationService localizationService)
 {
     _signIn              = new SignInMessage();
     _consent             = consent;
     _users               = users;
     _localizationService = localizationService;
 }
        public AuthorizeInteractionResponseGenerator(CoreSettings core, IConsentService consent)
        {
            _signIn = new SignInMessage();

            _core    = core;
            _consent = consent;
        }
 public AuthorizeInteractionResponseGenerator(CoreSettings settings, IConsentService consent)
 {
     _signIn = new SignInMessage();
     
     _settings = settings;
     _consent = consent;
 }
 public AuthorizeInteractionResponseGenerator(IConsentService consent, IUserService users, ILocalizationService localizationService)
 {
     _signIn = new SignInMessage();
     _consent = consent;
     _users = users;
     _localizationService = localizationService;
 }
Пример #9
0
 public CustomAuthorizeInteractionResponseGenerator(
     IdentityServerOptions options,
     ISystemClock clock,
     ILogger <Duende.IdentityServer.ResponseHandling.AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile) : base(options, clock, logger, consent, profile)
 {
 }
Пример #10
0
 public AccountService(ITrueLayerDataApi trueLayerDataApi, IConsentService consentService,
                       IRepository <List <Account>, string> accountRepository,
                       ITransactionRepository <Transaction, string> transactionRepository)
 {
     _trueLayerDataApi      = trueLayerDataApi;
     _consentService        = consentService;
     _accountRepository     = accountRepository;
     _transactionRepository = transactionRepository;
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizeInteractionResponseGenerator"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="consent">The consent.</param>
 /// <param name="profile">The profile.</param>
 public AuthorizeInteractionResponseGenerator(
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile)
 {
     Logger  = logger;
     Consent = consent;
     Profile = profile;
 }
Пример #12
0
 public GdprController(IConsentService consentService, IGdprModelFactory gdprModelFactory, IConsentGroupService consentGroupService, IModelMapper modelMapper, IConsentLogService consentLogService, ICryptographyService cryptographyService, IUserService userService)
 {
     _consentService      = consentService;
     _gdprModelFactory    = gdprModelFactory;
     _consentGroupService = consentGroupService;
     _modelMapper         = modelMapper;
     _consentLogService   = consentLogService;
     _cryptographyService = cryptographyService;
     _userService         = userService;
 }
 public ImpersonateAuthorizeInteractionResponseGenerator(
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile,
     IHttpContextAccessor http)
     : base(clock, logger, consent, profile)
 {
     _http = http;
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizeInteractionResponseGenerator"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="options">The options.</param>
 /// <param name="consent">The consent.</param>
 /// <param name="profile">The profile.</param>
 public AuthorizeInteractionResponseGenerator(
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IdentityServerOptions options,
     IConsentService consent,
     IProfileService profile)
 {
     _logger  = logger;
     _consent = consent;
     _profile = profile;
 }
Пример #15
0
 public AccountChooserResponseGenerator(
     RoleManager <ApplicationRole> roleManager,
     IAppUserRoleRepository appUserRoleRepository,
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent, IProfileService profile)
     : base(clock, logger, consent, profile)
 {
     _roleManager           = roleManager;
     _appUserRoleRepository = appUserRoleRepository;
 }
Пример #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizeInteractionResponseGenerator"/> class.
 /// </summary>
 public ApiAuthorizeInteractionResponseGenerator(
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IHttpContextAccessor httpContextAccessor)
 {
     Clock   = clock;
     Logger  = logger;
     Consent = consent;
     _httpContextAccessor = httpContextAccessor;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizeInteractionResponseGenerator"/> class.
 /// </summary>
 /// <param name="clock">The clock.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="consent">The consent.</param>
 /// <param name="profile">The profile.</param>
 public AuthorizeInteractionResponseGenerator(
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile)
 {
     Clock   = clock;
     Logger  = logger;
     Consent = consent;
     Profile = profile;
 }
Пример #18
0
 public CustomInteractionGenerator(
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile,
     IHttpContextAccessor http,
     IUserSession session)
     : base(clock, logger, consent, profile)
 {
     _http    = http;
     _session = session;
 }
 public AuthorizeInteractionResponseGenerator(
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IdentityServerOptions options,
     IConsentService consent,
     IUserService users,
     ILocalizationService localizationService)
 {
     _logger              = logger;
     _options             = options;
     _consent             = consent;
     _users               = users;
     _localizationService = localizationService;
 }
 public AuthorizeInteractionResponseGenerator(
     ILogger<AuthorizeInteractionResponseGenerator> logger, 
     IdentityServerOptions options, 
     IConsentService consent, 
     IProfileService profile, 
     ILocalizationService localizationService)
 {
     _logger = logger;
     _options = options;
     _consent = consent;
     _profile = profile;
     _localizationService = localizationService;
 }
Пример #21
0
        public ConsentController(
            IIdentityServerInteractionService interaction,
            IClientStore clientStore,
            IResourceStore resourceStore,
            IConsentService consentService,
            ILogger <ConsentController> logger)
        {
            _interaction    = interaction;
            _clientStore    = clientStore;
            _consentService = consentService;

            _consent = new ConsentService(interaction, clientStore, consentService, resourceStore, logger);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizeInteractionResponseGenerator"/> class.
 /// </summary>
 /// <param name="clock">The clock.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="consent">The consent.</param>
 /// <param name="profile">The profile.</param>
 public NopApiAuthorizeInteractionResponseGenerator(
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile, IHttpContextAccessor httpContextAccessor, IAuthenticationService authenticationService)
 {
     Clock   = clock;
     Logger  = logger;
     Consent = consent;
     Profile = profile;
     _httpContextAccessor   = httpContextAccessor;
     _authenticationService = authenticationService;
 }
 public AuthorizeInteractionResponseGenerator(
     ILogger<AuthorizeInteractionResponseGenerator> logger, 
     IdentityServerOptions options, 
     IConsentService consent, 
     IUserService users, 
     ILocalizationService localizationService)
 {
     _logger = logger;
     _options = options;
     _consent = consent;
     _users = users;
     _localizationService = localizationService;
 }
Пример #24
0
        public ConsentService(
            IIdentityServerInteractionService interaction,
            IClientStore clientStore,
            IConsentService consentService,
            IResourceStore resourceStore,
            ILogger logger)
        {
            _interaction    = interaction;
            _clientStore    = clientStore;
            _consentService = consentService;
            _resourceStore  = resourceStore;

            _logger = logger;
        }
 public AuthorizeEndpointController(
     ILogger logger, 
     AuthorizeRequestValidator validator, 
     AuthorizeResponseGenerator responseGenerator, 
     AuthorizeInteractionResponseGenerator interactionGenerator, 
     IConsentService consentService,
     ICoreSettings settings)
 {
     _logger = logger;
     _settings = settings;
 
     _responseGenerator = responseGenerator;
     _interactionGenerator = interactionGenerator;
     _validator = validator;
 }
Пример #26
0
 public AppAuthorizeInteractionResponseGenerator(
     UserManager userManager,
     SignInManager <ApplicationUser> signInManager,
     //IHttpContextAccessor httpContextAccessor,
     ISystemClock clock,
     ILogger <AuthorizeInteractionResponseGenerator> logger,
     IConsentService consent,
     IProfileService profile
     )
     : base(clock, logger, consent, profile)
 {
     _systemClock    = clock;
     _profileService = profile;
     //_httpContextAccessor = httpContextAccessor;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
 public AuthenticationController(IAppAuthenticationService appAuthenticationService, UserSettings userSettings, SecuritySettings securitySettings, IUserRegistrationService userRegistrationService, IRoleService roleService, IUserService userService, ICryptographyService cryptographyService, IUserCodeService userCodeService, IPreviousPasswordService previousPasswordService, IConsentService consentService, IGdprService gdprService, IGdprModelFactory gdprModelFactory, IInviteRequestService inviteRequestService, AffiliateSettings affiliateSettings)
 {
     _appAuthenticationService = appAuthenticationService;
     _userSettings             = userSettings;
     _securitySettings         = securitySettings;
     _userRegistrationService  = userRegistrationService;
     _roleService             = roleService;
     _userService             = userService;
     _cryptographyService     = cryptographyService;
     _userCodeService         = userCodeService;
     _previousPasswordService = previousPasswordService;
     _consentService          = consentService;
     _gdprService             = gdprService;
     _gdprModelFactory        = gdprModelFactory;
     _inviteRequestService    = inviteRequestService;
     _affiliateSettings       = affiliateSettings;
 }
Пример #28
0
 public CardController(ICardService cardService, IConsentService consentService)
 {
     _cardService    = cardService;
     _contentService = contentService;
 }
 public ConsentRuleEngine(IConsentService consentService)
 {
     this.consentService = consentService;
 }
Пример #30
0
 public ConsentController(ILogger <ConsentController> logger, IConsentService consentService,
                          IAccountService accountService, ITrueLayerDataApi trueLayerDataApi)
 {
     _logger         = logger;
     _consentService = consentService;
 }
Пример #31
0
 public ConsentController(IConsentService consentService)
 {
     _consentService = consentService ?? throw new ArgumentNullException(nameof(consentService));
 }
 public AuthorizeInteractionResponseGenerator(IConsentService consent, IUserService users)
 {
     _signIn = new SignInMessage();
     _consent = consent;
     _users = users;
 }
Пример #33
0
 public Consents(IKrisLogger logger, IConsentService consentService) : base(logger)
 {
     _ip             = PrepareIp();
     _consentService = consentService;
 }
 public AuthorizeInteractionResponseGenerator(IConsentService consent)
 {
     _signIn = new SignInMessage();
     _consent = consent;
 }
Пример #35
0
 public RawHtmlWidget(IWidgetService widgetService, IGdprService gdprService, IConsentService consentService)
 {
     _widgetService  = widgetService;
     _gdprService    = gdprService;
     _consentService = consentService;
 }
 public AuthorizeInteractionResponseGenerator(IConsentService consent)
 {
     _signIn  = new SignInMessage();
     _consent = consent;
 }
Пример #37
0
 public GdprController(IGdprService gdprService, IConsentService consentService, IGdprModelFactory gdprModelFactory)
 {
     _gdprService      = gdprService;
     _consentService   = consentService;
     _gdprModelFactory = gdprModelFactory;
 }