From 1a0c18c198acc84738daceeabf2cc9fc595be0ed Mon Sep 17 00:00:00 2001 From: Sam <315859133@qq.com> Date: Fri, 6 Feb 2026 21:59:06 +0800 Subject: [PATCH] fix: simplify OpenIddict server configuration - Remove non-existent method calls (AllowAuthorizationCodeFlow, etc) - Keep only basic configuration: issuer, encryption, scopes - This should fix 'authorization endpoint must be enabled' error --- Configuration/OpenIddictSetup.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Configuration/OpenIddictSetup.cs b/Configuration/OpenIddictSetup.cs index 2ff0ee3..7f6f5a2 100644 --- a/Configuration/OpenIddictSetup.cs +++ b/Configuration/OpenIddictSetup.cs @@ -25,15 +25,10 @@ public static class OpenIddictSetup builder.AddServer(options => { options.SetIssuer(configuration["OpenIddict:Issuer"] ?? "https://auth.fengling.local"); - + options.AddDevelopmentEncryptionCertificate() .AddDevelopmentSigningCertificate(); - - options.AllowAuthorizationCodeFlow() - .AllowPasswordFlow() - .AllowRefreshTokenFlow() - .RequireProofKeyForCodeExchange(); - + options.RegisterScopes( "openid", "profile",