From 02b888864960bcb5f29a1e7330f67df5ea21ff56 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 4 May 2020 16:42:11 +0200 Subject: [PATCH] Unnecessary stuff removed. --- .../Areas/Api/Config/IdentityServerPathMiddleware.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs b/backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs index 345e06fce..2ded8318b 100644 --- a/backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs +++ b/backend/src/Squidex/Areas/Api/Config/IdentityServerPathMiddleware.cs @@ -15,19 +15,15 @@ namespace Squidex.Areas.Api.Config { public sealed class IdentityServerPathMiddleware { - private readonly UrlsOptions urlsOptions; private readonly RequestDelegate next; - public IdentityServerPathMiddleware(IOptions urlsOptions, RequestDelegate next) + public IdentityServerPathMiddleware(RequestDelegate next) { - this.urlsOptions = urlsOptions.Value; - this.next = next; } public Task InvokeAsync(HttpContext context) { - context.SetIdentityServerOrigin(urlsOptions.BaseUrl); context.SetIdentityServerBasePath(Constants.IdentityServerPrefix); return next(context);