Browse Source

Unnecessary stuff removed.

pull/520/head
Sebastian 6 years ago
parent
commit
02b8888649
  1. 6
      backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs

6
backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs

@ -15,19 +15,15 @@ namespace Squidex.Areas.Api.Config
{ {
public sealed class IdentityServerPathMiddleware public sealed class IdentityServerPathMiddleware
{ {
private readonly UrlsOptions urlsOptions;
private readonly RequestDelegate next; private readonly RequestDelegate next;
public IdentityServerPathMiddleware(IOptions<UrlsOptions> urlsOptions, RequestDelegate next) public IdentityServerPathMiddleware(RequestDelegate next)
{ {
this.urlsOptions = urlsOptions.Value;
this.next = next; this.next = next;
} }
public Task InvokeAsync(HttpContext context) public Task InvokeAsync(HttpContext context)
{ {
context.SetIdentityServerOrigin(urlsOptions.BaseUrl);
context.SetIdentityServerBasePath(Constants.IdentityServerPrefix); context.SetIdentityServerBasePath(Constants.IdentityServerPrefix);
return next(context); return next(context);

Loading…
Cancel
Save