/// <summary>
 /// Creates a new instance of the <see cref="OpenIddictClientOwinHandler"/> class.
 /// </summary>
 /// <param name="dispatcher">The OpenIddict client dispatcher used by this instance.</param>
 /// <param name="factory">The OpenIddict client factory used by this instance.</param>
 public OpenIddictClientOwinHandler(
     IOpenIddictClientDispatcher dispatcher,
     IOpenIddictClientFactory factory)
 {
     _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
     _factory    = factory ?? throw new ArgumentNullException(nameof(factory));
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="OpenIddictClientOwinMiddleware"/> class.
 /// </summary>
 /// <param name="next">The next middleware in the pipeline, if applicable.</param>
 /// <param name="options">The OpenIddict client OWIN options.</param>
 /// <param name="dispatcher">The OpenIddict client dispatcher.</param>
 /// <param name="factory">The OpenIddict client factory.</param>
 public OpenIddictClientOwinMiddleware(
     OwinMiddleware?next,
     IOptionsMonitor <OpenIddictClientOwinOptions> options,
     IOpenIddictClientDispatcher dispatcher,
     IOpenIddictClientFactory factory)
     : base(next, options.CurrentValue)
 {
     _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
     _factory    = factory ?? throw new ArgumentNullException(nameof(factory));
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="OpenIddictClientAspNetCoreHandler"/> class.
 /// </summary>
 public OpenIddictClientAspNetCoreHandler(
     IOpenIddictClientDispatcher dispatcher,
     IOpenIddictClientFactory factory,
     IOptionsMonitor <OpenIddictClientAspNetCoreOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock)
     : base(options, logger, encoder, clock)
 {
     _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
     _factory    = factory ?? throw new ArgumentNullException(nameof(factory));
 }
 public PrepareAuthorizationRequest(IOpenIddictClientDispatcher dispatcher)
 => _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
 public ApplyRedirectionResponse(IOpenIddictClientDispatcher dispatcher)
 => _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
 public HandleRedirectionRequest(IOpenIddictClientDispatcher dispatcher)
 => _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));