コード例 #1
0
 protected AuthorizeEndpointBase(IEventService events, IUserSession userSession, IAuthorizeRequestValidator validator, IAuthorizeResponseGenerator authorizeResponseGenerator, IAuthorizeInteractionResponseGenerator interactionGenerator)
 {
     _events     = events;
     UserSession = userSession;
     _validator  = validator;
     _authorizeResponseGenerator = authorizeResponseGenerator;
     _interactionGenerator       = interactionGenerator;
 }
コード例 #2
0
 public AuthorizeEndpoint(
     IEventService events,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession)
     : base(events, userSession, validator, authorizeResponseGenerator, interactionGenerator)
 {
 }
コード例 #3
0
 public TestAuthorizeEndpoint(
     IEventService events,
     ILogger <TestAuthorizeEndpoint> logger,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession)
     : base(events, logger, validator, interactionGenerator, authorizeResponseGenerator, userSession)
 {
 }
コード例 #4
0
 public AuthorizeCallbackEndpoint(
     IEventService events,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession,
     IConsentMessageStore consentResponseStore) : base(events, userSession, validator, authorizeResponseGenerator, interactionGenerator)
 {
     _consentResponseStore = consentResponseStore;
 }
 public AuthorizeCallbackEndpoint(
     IEventService events,
     ILogger <AuthorizeCallbackEndpoint> logger,
     IdentityServerOptions options,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession,
     IConsentMessageStore consentResponseStore,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
     : base(events, logger, options, validator, interactionGenerator, authorizeResponseGenerator, userSession, consentResponseStore, authorizationParametersMessageStore)
 {
 }
コード例 #6
0
 public AuthorizeEndpoint(
     IEventService events,
     ILogger <AuthorizeEndpoint> logger,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IMessageStore <ConsentResponse> consentResponseStore,
     IAuthorizeResponseGenerator authorizeResponseGenerator)
 {
     _events                     = events;
     _logger                     = logger;
     _validator                  = validator;
     _interactionGenerator       = interactionGenerator;
     _consentResponseStore       = consentResponseStore;
     _authorizeResponseGenerator = authorizeResponseGenerator;
 }
コード例 #7
0
 protected AuthorizeEndpointBase(
     IEventService events,
     ILogger <AuthorizeEndpointBase> logger,
     IdentityServerOptions options,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession)
 {
     _events                     = events;
     _options                    = options;
     Logger                      = logger;
     _validator                  = validator;
     _interactionGenerator       = interactionGenerator;
     _authorizeResponseGenerator = authorizeResponseGenerator;
     UserSession                 = userSession;
 }
コード例 #8
0
 public AuthorizeEndpoint(
     IEventService events,
     ILogger <AuthorizeEndpoint> logger,
     IdentityServerContext context,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeEndpointResultFactory resultGenerator,
     IMessageStore <ConsentResponse> consentResponseStore)
 {
     _events               = events;
     _logger               = logger;
     _context              = context;
     _validator            = validator;
     _interactionGenerator = interactionGenerator;
     _resultGenerator      = resultGenerator;
     _consentResponseStore = consentResponseStore;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultAuthorizeRequestHandler"/> class.
 /// </summary>
 /// <param name="events">The events service instance.</param>
 /// <param name="logger">The logger instance.</param>
 /// <param name="validator">The request validator instance.</param>
 /// <param name="interactionGenerator">The interaction generator instance.</param>
 /// <param name="authorizeResponseGenerator">The authorize response generator instance.</param>
 /// <param name="userSession">The user session instance.</param>
 /// <param name="options">IdentityServer options.</param>
 /// <param name="loginUrlProcessor">The login URL processor instance.</param>
 /// <exception cref="ArgumentNullException">events</exception>
 /// <exception cref="ArgumentNullException">logger</exception>
 /// <exception cref="ArgumentNullException">validator</exception>
 /// <exception cref="ArgumentNullException">interactionGenerator</exception>
 /// <exception cref="ArgumentNullException">authorizeResponseGenerator</exception>
 /// <exception cref="ArgumentNullException">userSession</exception>
 public DefaultAuthorizeRequestHandler(
     IEventService events,
     ILogger <DefaultAuthorizeRequestHandler> logger,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession,
     IOptions <IdentityServerOptions> options,
     ILoginUrlProcessor loginUrlProcessor = null)
 {
     _events                     = events ?? throw new ArgumentNullException(nameof(events));
     _logger                     = logger ?? throw new ArgumentNullException(nameof(logger));
     _validator                  = validator ?? throw new ArgumentNullException(nameof(validator));
     _interactionGenerator       = interactionGenerator ?? throw new ArgumentNullException(nameof(interactionGenerator));
     _authorizeResponseGenerator = authorizeResponseGenerator ?? throw new ArgumentNullException(nameof(authorizeResponseGenerator));
     _userSession                = userSession ?? throw new ArgumentNullException(nameof(userSession));
     _options                    = options?.Value ?? throw new ArgumentNullException(nameof(options));
     _loginUrlProcessor          = loginUrlProcessor;
 }
コード例 #10
0
 public AuthorizeEndpoint(
     IEventService events, 
     ILogger<AuthorizeEndpoint> logger,
     IdentityServerContext context,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeEndpointResultFactory resultGenerator,
     IMessageStore<SignInResponse> signInResponseStore,
     IMessageStore<ConsentResponse> consentRequestStore)
 {
     _events = events;
     _logger = logger;
     _context = context;
     _validator = validator;
     _interactionGenerator = interactionGenerator;
     _resultGenerator = resultGenerator;
     _signInResponseStore = signInResponseStore;
     _consentResponseStore = consentRequestStore;
 }
コード例 #11
0
 public Authorize2Endpoint(
     BearerTokenUsageValidator tokenUsageValidator,
     IUserInfoRequestValidator requestValidator,
     IUserInfoResponseGenerator responseGenerator,
     IEventService events,
     IClientSecretValidator clientValidator,
     ILogger <AuthorizeEndpoint> logger,
     IAuthorize2RequestValidator validator2,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession)
     : base(events, logger, validator, interactionGenerator, authorizeResponseGenerator, userSession)
 {
     _validator2          = validator2;
     _clientValidator     = clientValidator;
     _tokenUsageValidator = tokenUsageValidator;
     _requestValidator    = requestValidator;
     _responseGenerator   = responseGenerator;
 }
コード例 #12
0
 protected AuthorizeEndpointBase(
     IEventService events,
     ILogger <AuthorizeEndpointBase> logger,
     IdentityServerOptions options,
     IAuthorizeRequestValidator validator,
     IAuthorizeInteractionResponseGenerator interactionGenerator,
     IAuthorizeResponseGenerator authorizeResponseGenerator,
     IUserSession userSession,
     IConsentMessageStore consentResponseStore,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
 {
     _events                              = events;
     _options                             = options;
     Logger                               = logger;
     _validator                           = validator;
     _interactionGenerator                = interactionGenerator;
     _authorizeResponseGenerator          = authorizeResponseGenerator;
     UserSession                          = userSession;
     _consentResponseStore                = consentResponseStore;
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
 public AnonymousAuthorizeInteractionResponseGenerator(Decorator <IAuthorizeInteractionResponseGenerator> decorator)
 {
     _inner = decorator.Instance;
 }