From 00002d06218532086f27c488edbfa5f657211181 Mon Sep 17 00:00:00 2001 From: Berkan Sasmaz Date: Thu, 17 Jun 2021 21:32:48 +0300 Subject: [PATCH] Update EventHubIdentityServerModule.cs --- .../EventHubIdentityServerModule.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs b/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs index 99959f8..2f91909 100644 --- a/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs +++ b/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs @@ -9,13 +9,16 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using EventHub.EntityFrameworkCore; using EventHub.Localization; +using EventHub.Web; using EventHub.Web.Theme; using EventHub.Web.Theme.Bundling; +using IdentityServer4.Configuration; using StackExchange.Redis; using Volo.Abp; using Volo.Abp.Account; using Volo.Abp.Account.Web; using Volo.Abp.AspNetCore.Mvc.UI.Bundling; +using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; using Volo.Abp.AspNetCore.Serilog; using Volo.Abp.Auditing; @@ -76,6 +79,17 @@ namespace EventHub options.ApplicationName = "AuthServer"; }); + Configure(options => + { + options.Applications["MVC"].RootUrl = EventHubExternalUrls.EhAccount; + }); + + Configure(options => + { + options.IssuerUri = EventHubExternalUrls.EhAccount; + }); + + if (hostingEnvironment.IsDevelopment()) { Configure(options =>