From d4e54f570908bc5bcc0f6fbefc3dde334c2b78e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=86=E9=91=AB?= Date: Wed, 29 Oct 2025 23:52:40 +0800 Subject: [PATCH] =?UTF-8?q?chore=20=E4=BC=98=E5=8C=96authserverAudience?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KonSoft.AuthServer/KonSoftAuthServerModule.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/applications/KonSoft.AuthServer/KonSoftAuthServerModule.cs b/applications/KonSoft.AuthServer/KonSoftAuthServerModule.cs index f9eb100..9ecd951 100644 --- a/applications/KonSoft.AuthServer/KonSoftAuthServerModule.cs +++ b/applications/KonSoft.AuthServer/KonSoftAuthServerModule.cs @@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using OpenIddict.Validation; using System; using System.Linq; using System.Net; @@ -26,6 +27,7 @@ using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.OpenIddict; using Volo.Abp.Security.Claims; +using Volo.Abp.UI.Navigation.Urls; using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork; namespace KonSoft; @@ -50,7 +52,7 @@ public class KonSoftAuthServerModule : AbpModule { builder.AddValidation(options => { - options.AddAudiences("KonSoft"); + options.AddAudiences(KonSoftConsts.AuthServerAudience); options.UseLocalServer(); options.UseAspNetCore(); }); @@ -63,6 +65,11 @@ public class KonSoftAuthServerModule : AbpModule options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; }); + Configure(options => + { + options.SetIssuer(""); + }); + if (!hostingEnvironment.IsDevelopment()) { PreConfigure(options =>