/// <summary>
 /// Initializes a new instance of the <see cref="DefaultAuthorizationParametersProcessor"/> class.
 /// </summary>
 /// <param name="store">The authorization parameters store instance.</param>
 /// <param name="logger">The logger instance.</param>
 /// <exception cref="ArgumentNullException">logger</exception>
 public DefaultAuthorizationParametersProcessor(
     ILogger <DefaultAuthorizationParametersProcessor> logger,
     IAuthorizationParametersMessageStore store = null)
 {
     _store  = store;
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 internal LoginPageResult(
     ValidatedAuthorizeRequest request,
     IdentityServerOptions options,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
     : this(request)
 {
     _options = options;
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
예제 #3
0
 internal CustomRedirectResult(
     ValidatedAuthorizeRequest request,
     string url,
     IdentityServerOptions options,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
     : this(request, url)
 {
     _options = options;
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
예제 #4
0
 public OidcReturnUrlParser(
     IAuthorizeRequestValidator validator,
     IUserSession userSession,
     ILogger <OidcReturnUrlParser> logger,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
 {
     _validator   = validator;
     _userSession = userSession;
     _logger      = logger;
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
 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
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultAuthorizeRequestCompleteHandler"/> class.
 /// </summary>
 /// <param name="authorizeRequestHandler">The authorize request handler.</param>
 /// <param name="consentResponseStore">The consent response store instance.</param>
 /// <param name="authorizationParametersMessageStore">The authorization parameters message store instance.</param>
 /// <param name="userSession">The user session instance.</param>
 /// <param name="logger">The logger instance.</param>
 /// <exception cref="ArgumentNullException">authorizeRequestHandler</exception>
 /// <exception cref="ArgumentNullException">consentResponseStore</exception>
 /// <exception cref="ArgumentNullException">logger</exception>
 /// <exception cref="ArgumentNullException">userSession</exception>
 public DefaultAuthorizeRequestCompleteHandler(
     IAuthorizeRequestHandler authorizeRequestHandler,
     IConsentMessageStore consentResponseStore,
     IUserSession userSession,
     ILogger <DefaultAuthorizeRequestCompleteHandler> logger,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
 {
     _authorizeRequestHandler = authorizeRequestHandler ?? throw new ArgumentNullException(nameof(authorizeRequestHandler));
     _consentResponseStore    = consentResponseStore ?? throw new ArgumentNullException(nameof(consentResponseStore));
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
     _userSession = userSession ?? throw new ArgumentNullException(nameof(userSession));
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
 public OidcReturnUrlParser(
     IdentityServerOptions options,
     IAuthorizeRequestValidator validator,
     IUserSession userSession,
     IServerUrls urls,
     ILogger <OidcReturnUrlParser> logger,
     IAuthorizationParametersMessageStore authorizationParametersMessageStore = null)
 {
     _options     = options;
     _validator   = validator;
     _userSession = userSession;
     _urls        = urls;
     _logger      = logger;
     _authorizationParametersMessageStore = authorizationParametersMessageStore;
 }
예제 #8
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;
 }
 private void Init(HttpContext context)
 {
     _options = _options ?? context.RequestServices.GetRequiredService <IdentityServerOptions>();
     _authorizationParametersMessageStore = _authorizationParametersMessageStore ?? context.RequestServices.GetService <IAuthorizationParametersMessageStore>();
 }